-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·149 lines (110 loc) · 4.55 KB
/
Copy pathindex.html
File metadata and controls
executable file
·149 lines (110 loc) · 4.55 KB
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
<!doctype html>
<html lang="en">
<head>
<!-- <link rel="stylesheet" href="css/cs.css" > -->
<!-- Code syntax highlighting -->
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="http://gridster.net/dist/jquery.gridster.js"></script>
<link rel = "stylesheet" href="http://gridster.net/dist/jquery.gridster.min.css" />
<link rel="stylesheet" type="text/css" href="mains.css" />
<script>
var gridster;
$(function(){
gridster = $(".gridster > ul").gridster({
widget_margins: [10, 10],
widget_base_dimensions: [200, 200]
}).data('gridster');
/*gridster.add_widget('<li class="new">The HTML of the widget...</li>', 2,1,1,1);*/
/*
var height = $(".content").height()
var width = $(".content").width()
var width_p = $("p").width()
var height_p = $("p").height()
console.log(height);
console.log(width);*/
/*
$( ".content" ).each(function( ) {
var height = $(this).height()
var width = $(this).width()
var width_p = $("h2").width()
var height_p = $(this).find("h2").height()
$(this).find("h2").css("transform","tranlate3d(0,(0.5*height)-(height_p/2),0)").css("transform","translate3d((0.5*width)-(width_p/2),0,0)");
/*$(this).css("margin-top",(0.5*height)-(height_p/2));*/
// $(this).find("h2").css("margin-left",(0.5*width)-(width_p/2));
/*console.log(height);
console.log(width);
console.log(height_p);
console.log((0.5*width)-(width_p/2));
});*/
});
</script>
</head>
<body>
<div class="gridster">
<ul>
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div class="box">
<img src="c.png" alt="img12" />
<div class="content">
<h2>c++vffffffffffffffffffff<span>function</span></h2>
<p>how to call a function.stackoverflow</p>
</div>
</div>
</li>
<li data-row="2" data-col="1" data-sizex="1" data-sizey="1">
<div class="box">
<img src="c.png" alt="img12" />
<div class="content">
<h2>c++<span>function</span></h2>
<p>how to call a function.stackoverflow</p>
</div>
</div>
</li>
<li data-row="3" data-col="1" data-sizex="1" data-sizey="1">
<div class="box">
<img src="c.png" alt="img12" />
<div class="content">
<h2>c++<span>function</span></h2>
<p>how to call a function.stackoverflowfsfsdfsdfsdfsdddddddddddddddddddddddddd</p>
</div>
</div>
</li>
<li data-row="1" data-col="2" data-sizex="2" data-sizey="1">
<div class="box">
<img src="c.png" alt="img12" />
<div class="content">
<h2>c++<span>function</span></h2>
<p>how to call a function.stackoverflow</p>
</div>
</div>
</li>
<li data-row="2" data-col="2" data-sizex="2" data-sizey="2">
<div class="box">
<img src="c.png" alt="img12" />
<div class="content">
<h2>c++<span>function</span></h2>
<p>how to call a function.stackoverflow</p>
</div>
</div>
</li>
<li data-row="1" data-col="4" data-sizex="1" data-sizey="1"></li>
<li data-row="2" data-col="4" data-sizex="2" data-sizey="1">
<div class="box">
<img src="c.png" alt="img12" />
<div class="content">
<h2>c++<span>function</span></h2>
<p>how to call a function.stackoverflow</p>
</div>
</div>
</li>
<li data-row="3" data-col="4" data-sizex="1" data-sizey="1"></li>
<li data-row="1" data-col="5" data-sizex="1" data-sizey="1">
</li>
<li data-row="3" data-col="5" data-sizex="1" data-sizey="1"></li>
<li data-row="1" data-col="6" data-sizex="1" data-sizey="1"></li>
<li data-row="2" data-col="6" data-sizex="1" data-sizey="2"></li>
</ul>
</div>
<script src="js/bootstrap.min.js"></script>
</body>
</html>