This repository has been archived by the owner on Nov 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathindex.html
178 lines (148 loc) · 7.29 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html>
<head>
<title>Laravel</title>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/jquery.easing/js/jquery.easing.min.js"></script>
<script type="text/javascript" src="dist/jquery.easypin.js"></script>
<style>
html, body {
height: 100%;
}
body {
margin: 0;
padding: 0;
width: 100%;
display: table;
font-weight: 100;
font-family: 'Lato';
}
.container {
text-align: center;
display: table-cell;
vertical-align: middle;
}
.content {
text-align: center;
display: inline-block;
}
.title {
font-size: 96px;
}
</style>
</head>
<body>
<div class="xx"></div>
<div class="xx"></div>
<div class="xx"></div>
<div class="xx"></div>
<div class="xx"></div>
<div class="xx"></div>
<div style="width:400px;"><img src="http://www.intrawallpaper.com/static/images/colourful-dice-cubes.jpg" class="pin" style="width:100%;" easypin-id="1TNz0G7H_7" /></div>
<div style="position:relative;left:50px;">
<br />
<div style="width:1px;height:80px;"> </div>
<br />
<img src="http://allwallpapersnew.com/wp-content/gallery/natural-green-wallpaper/green-natural-329594.jpg" class="pin" width="1200" easypin-id="hdhgddhgd" />
<img src="https://i.ytimg.com/vi/48fKIXlxaXk/maxresdefault.jpg" class="pin" easypin-id="E0MzZeBVhY" />
</div>
<br />
<br />
<div class="container">
<div class="content">
<div class="title">Laravel 5</div>
</div>
</div>
</div>
<div class="easy-modal" style="display:none;" modal-position="free">
<form>
<input name="firstname" type="text">
<br />
<br>
<input name="surname" type="text">
<br />
<br />
<input type="checkbox" name="check1" value="music"> Music
<input type="checkbox" name="check2" value="cinema"> Cinema
<br />
<br />
<select name="city">
<option value="istanbul">Istanbul</option>
<option value="ankara">Ankara</option>
<option value="izmir">İzmir</option>
<option value="bursa">Bursa</option>
</select>
<br />
<br />
<label>
<input type="radio" name="gender" value="male" /> Male
</label>
<label>
<input type="radio" name="gender" value="female" /> Female
</label>
<br />
<br />
<textarea name="description"></textarea>
<br />
<br />
<a class="easy-submit" href="javascript:;">Tamam</a>
</form>
</div>
<div style="display:none;" width="400" shadow="true" popover>
<span>{[firstname]} {[surname]}</span>
<span>{[city]}</span>
<span>{[gender]}</span>
<span>{[check1]}</span>
<span>{[check2]}</span>
<br />
<span>{[description]}</span>
</div>
<br />
<input class="test" type="button" value="Click" />
</body>
</html>
<script type="text/javascript">
$(document).ready(function(){
var $easyInstance = $('.pin').easypin({
init: '{"Vegyr8foSu":{"0":{"firstname":"ahmet","surname":"atay","check2":"cinema","city":"bursa","gender":"male","description":"açıklama","coords":{"lat":"1048","long":"357"}},"1":{"firstname":"arife","surname":"koç","check1":"music","city":"ankara","gender":"female","description":"açıklamaa","coords":{"lat":"787","long":"548"}},"2":{"firstname":"veli","surname":"küçükf","check1":"music","check2":"cinema","city":"istanbul","gender":"male","description":"veliiii","coords":{"lat":"1617","long":"661"}},"3":{"firstname":"test 1","surname":"testtt 1","check2":"cinema","city":"istanbul","gender":"male","description":"test 1 açıklama","coords":{"lat":"481","long":"243"}},"4":{"firstname":"test 2","surname":"testttt 2","check1":"music","check2":"cinema","city":"izmir","gender":"male","description":"test 2 açıklama","coords":{"lat":"486","long":"627"}},"5":{"firstname":"test 3","surname":"testtttt 3","check1":"music","city":"ankara","gender":"female","description":"test 3 açıklama","coords":{"lat":"440","long":"462"}},"6":{"coords":{"lat":"829","long":"-5"}},"canvas":{"src":"11495.jpg","width":"1920","height":"710"}},"hdhgddhgd":{"0":{"firstname":"hello","surname":"","city":"istanbul","description":"","coords":{"lat":"577","long":"215"}},"canvas":{"src":"http://allwallpapersnew.com/wp-content/gallery/natural-green-wallpaper/green-natural-329594.jpg","width":"1200","height":"750"}},"E0MzZeBVhY":{"0":{"firstname":"captan america","surname":"","city":"istanbul","gender":"male","description":"","coords":{"lat":"1029","long":"335"}},"1":{"firstname":"hulk","surname":"","city":"istanbul","gender":"male","description":"angry man","coords":{"lat":"72","long":"294"}},"2":{"firstname":"thor","surname":"","city":"istanbul","gender":"male","description":"adama kor","coords":{"lat":"1685","long":"243"}},"3":{"firstname":"","surname":"","city":"istanbul","description":"","coords":{"lat":"552","long":"367"}},"canvas":{"src":"https://i.ytimg.com/vi/48fKIXlxaXk/maxresdefault.jpg","width":"1920","height":"1080"}},"1TNz0G7H_7":{"0":{"firstname":"zarrrr","surname":"","city":"istanbul","description":"","coords":{"lat":"197","long":"76"}},"canvas":{"src":"http://www.intrawallpaper.com/static/images/colourful-dice-cubes.jpg","width":"400","height":"250"}}}',
popover: {
firstname: function(value) {
return value;
},
city: function(value) {
return value;
},
gender: function(value) {
return value == 'male' ? 'Bay' : 'Bayan';
}
},
popoverStyle: {
'background-color': 'orange',
'color': 'black'
},
limit: 0,
exceeded: function(type) {
console.log(type);
},
drop: function(x, y, element) {
//console.log(x,y, element);
},
drag: function(x, y, element) {
//console.log(x, y, element);
},
done: function(element) {
console.log(element);
return true;
}
});
$easyInstance.easypin.event( "get.coordinates", function($instance, data, params ) {
// $instance.clear();
console.log( data, params);
});
$( ".test" ).click(function( event ) {
$easyInstance.easypin.fire( "get.coordinates", {t:1, r:2, y:3}, function(data) {
return JSON.stringify(data);
});
});
});
</script>