-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
136 lines (115 loc) · 3.03 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html>
<head>
<!-- Standard Meta -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<!-- Site Properties -->
<title>Responsive Elements - Semantic</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css">
<script src="https://semantic-ui.com/examples/assets/library/jquery.min.js"></script>
<script src="https://semantic-ui.com/dist/semantic.js"></script>
</head>
<body style="background:#f1f1f1">
</style>>
<h1 class="ui center aligned header"></h1>
<h1 class="ui center blue horizontal divider header">
<i class="rocket icon blue"></i>
TUNIS TELECOM
</h1>
<div class="ui container">
<div class="ui center aligned grid">
<div class="column center aligned">
<div class="ui fluid huge category search blue">
<div class="ui icon input">
<input class="prompt" type="text" placeholder="Pesquise sua cidade...">
<i class="search icon"></i>
</div>
<div class="results"></div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var
content = [
{
title: 'Fortaleza',
url: 'http://45.70.206.41:8000/central',
},
{
title: 'Caucaia',
url: 'http://45.70.206.41:8001/central',
}
]
;
$('.ui.search')
.search({
source : content,
searchFields : [
'title',
'actionURL'
],
fullTextSearch: false
})
;
</script>
<!-- Content JS HERE !-->
<style>
.last.container {
margin-bottom: 300px !important;
}
h1.ui.center.header {
margin-top: 3em;
}
h2.ui.center.header {
margin: 4em 0em 2em;
}
h3.ui.center.header {
margin-top: 2em;
padding: 2em 0em;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
var
$headers = $('body > h3'),
$header = $headers.first(),
ignoreScroll = false,
timer
;
// Preserve example in viewport when resizing browser
$(window)
.on('resize', function() {
// ignore callbacks from scroll change
clearTimeout(timer);
$headers.visibility('disable callbacks');
// preserve position
$(document).scrollTop( $header.offset().top );
// allow callbacks in 500ms
timer = setTimeout(function() {
$headers.visibility('enable callbacks');
}, 500);
})
;
$headers
.visibility({
// fire once each time passed
once: false,
// don't refresh position on resize
checkOnRefresh: true,
// lock to this element on resize
onTopPassed: function() {
$header = $(this);
},
onTopPassedReverse: function() {
$header = $(this);
}
})
;
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/components/search.min.js" integrity="sha512-cYY5gAyJxIK4sLwDYueWWJH9rEdgBNvRaEIGJ6+dQ5vzfoTqHAtUDYrG2rdZTGqACvPS9QRrnzqqRGfrgxO7ug==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</body>
</html>