BraydenMoore commited on
Commit
83db369
·
1 Parent(s): 1441132

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +53 -56
templates/index.html CHANGED
@@ -1,8 +1,7 @@
1
  <!DOCTYPE html>
2
  <html>
3
-
4
  <head>
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>a random unsecured security camera</title>
7
  <style>
8
  body {
@@ -39,87 +38,85 @@
39
 
40
  .flex-container {
41
  display: flex;
42
- justify-content: space-between;
43
- }
44
-
45
- .feed-wrapper, .info {
46
- flex-basis: 48%;
47
  }
48
 
49
- .feed-wrapper {
50
- position: relative;
51
- padding-bottom: 56.25%;
52
- height: 0;
53
- overflow: hidden;
54
- border: 1px solid yellow;
55
  }
56
 
57
  .feed {
58
- position: absolute;
59
- top: 0;
60
- left: 0;
61
- width: 100%;
62
- height: 100%;
63
- object-fit: contain;
64
  }
65
 
66
  .map-div {
67
- position: relative;
68
- width: 100%;
69
- padding-bottom: 60%; /* aspect ratio */
70
- overflow: hidden;
71
  }
72
 
73
- @media only screen and (max-width: 768px) {
74
- .flex-container {
75
- flex-direction: column;
76
- align-items: center;
77
- }
78
-
79
- .feed-wrapper, .info {
80
- width: 90%;
81
- }
82
-
83
- .feed-wrapper {
84
- padding-bottom: 50%;
85
- }
86
  }
87
 
 
 
 
 
 
 
 
88
  </style>
89
  </head>
90
 
91
  <body style="background-color: black;">
92
  <div class="outer-container">
93
- <h1 style="color:rgb(83, 83, 83); font-family: 'Helvetica'; font-weight: 50; margin-bottom: 3%;">a random unsecured camera</h1>
94
- <div class="flex-container">
95
- <div class="feed-wrapper">
96
- <img id="feed" class="feed" src="{{ url_for('proxy', url=url) }}" />
97
- </div>
98
- <div class="info">
99
- <div class="map-div">
100
- <img id="map" src="{{ url_for('static', filename='map.png') }}" />
101
- <div class="dot" style="left: {{ X }}%; top: {{ Y }}%;"></div>
102
- <div class="pulse" style="left: {{ X }}%; top: {{ Y }}%;"></div>
 
 
 
 
 
 
 
 
 
 
 
103
  </div>
104
- <h2 style="border-bottom: 1px solid yellow; color:rgb(83, 83, 83); font-family: 'Helvetica'; font-weight: 50;">{{ name }}</h2>
105
- <p style="color:rgb(83, 83, 83); font-family: 'Helvetica'; font-weight: 50;">{{ loc }} <br><br> {{ ip }} <br><br> {{ org }} <br><br> {{ time }}</p>
106
- <a href="." style="margin-top: 3%; display: inline-block;">
107
- <button class="hoverButton" style="border: 1px solid yellow; background-color: transparent; color: rgb(83, 83, 83); padding: 10px;">
108
- another
109
- </button>
110
- </a>
111
  </div>
112
- </div>
113
  </div>
 
 
114
  <script>
115
  document.addEventListener("DOMContentLoaded", function() {
116
  const feed = document.getElementById("feed");
117
  feed.src = "{{ url_for('static', filename='loading.gif') }}"
118
  setTimeout(function() {
119
- const newUrl = "{{ url }}";
120
  feed.src = newUrl;
 
121
  });
122
- });
123
  </script>
124
  </body>
125
 
 
1
  <!DOCTYPE html>
2
  <html>
3
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
  <head>
 
5
  <title>a random unsecured security camera</title>
6
  <style>
7
  body {
 
38
 
39
  .flex-container {
40
  display: flex;
41
+ justify-content: left;
42
+ align-items: top;
 
 
 
43
  }
44
 
45
+ .outer-container {
46
+ margin: auto;
47
+ justify-content: center;
48
+ align-items: left;
49
+ max-width: 80vw;
 
50
  }
51
 
52
  .feed {
53
+ padding: 1%;
54
+ border-style: solid;
55
+ border-width: 1px;
56
+ border-color: yellow;
57
+ margin-right: 3%;
 
58
  }
59
 
60
  .map-div {
61
+ padding: 1%;
62
+ border-style: solid;
63
+ border-width: 1px;
64
+ border-color: yellow;
65
  }
66
 
67
+ a:hover {
68
+ background-color: yellow;
69
+ color: black;
70
+ transition: 0.5s ease-in-out;
 
 
 
 
 
 
 
 
 
71
  }
72
 
73
+ @media only screen and (max-width: 768px) {
74
+ .flex-container {
75
+ flex-direction: column;
76
+ align-items: center;
77
+ }
78
+ }
79
+
80
  </style>
81
  </head>
82
 
83
  <body style="background-color: black;">
84
  <div class="outer-container">
85
+ <h1 style="color:rgb(83, 83, 83); font-family: 'Helvetica'; font-weight: 50; margin-bottom: 3%;"> a random unsecured camera</h1>
86
+ <div class="flex-container">
87
+ <img id="feed" class="feed" src="{{ url_for('proxy', url=url) }}" style="width: 90%; height: 300px;" />
88
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
89
+
90
+ <div class="map-div" style="position: relative; width: 90%; height: 300px; margin-bottom: 3%;">
91
+ <div style="position: relative;">
92
+ <img id="map" src="{{ url_for('static', filename='map.png') }}" style="width: 90%; height: 300px;" />
93
+ <div class="dot" style="left: {{ X }}%; top: {{ Y }}%;"></div>
94
+ <div class="pulse" style="left: {{ X }}%; top: {{ Y }}%;"></div>
95
+ </div>
96
+ </div>
97
+ <h2 style="border-bottom: 1px solid yellow; color:rgb(83, 83, 83); font-family: 'Helvetica'; font-weight: 50;">{{ name }}</h2>
98
+ <p style="color:rgb(83, 83, 83); font-family: 'Helvetica'; font-weight: 50;">{{ loc }} <br><br> {{ ip }} <br><br> {{ org }} <br><br> {{ time }}</p>
99
+
100
+ <a href="." style="margin-top: 3%; display: inline-block;">
101
+ <button class="hoverButton" style="border: 1px solid yellow; background-color: transparent; color: rgb(83, 83, 83); padding: 10px;">
102
+ another
103
+ </button>
104
+ </a>
105
+ </div>
106
  </div>
 
 
 
 
 
 
 
107
  </div>
 
108
  </div>
109
+
110
+
111
  <script>
112
  document.addEventListener("DOMContentLoaded", function() {
113
  const feed = document.getElementById("feed");
114
  feed.src = "{{ url_for('static', filename='loading.gif') }}"
115
  setTimeout(function() {
116
+ const newUrl = "{{ url }}";
117
  feed.src = newUrl;
118
+ });
119
  });
 
120
  </script>
121
  </body>
122