-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
139 lines (117 loc) · 3.97 KB
/
index.html
File metadata and controls
139 lines (117 loc) · 3.97 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<script src="js/underscore-min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/Three.js" type="text/javascript" charset="utf-8"></script>
<script src="js/canvas2image.js" type="text/javascript" charset="utf-8"></script>
<script src="js/push-application.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$( 'window' ).ready( function() {
var generator = new window.PushGenerator( '#generator', '#gen-input', 800, 600, true )
$( '#gen-input' ).focus()
if ( window.getURLVars()['push'] && window.getURLVars()['push'] != '' ) {
setTimeout( function() {
var text = decodeURIComponent( window.getURLVars()['push'] )
text = text.split( '_' ).join( ' ' )
$( '#gen-input' ).val( text ).trigger( 'keyup' )
}, 0 );
}
})
</script>
<style type="text/css" media="screen">
body {
background-color: #262626;
}
#generator-frame {
width: 800px;
text-align: center;
}
#generator {
width: 800px;
height: 600px;
background-color: #262626;
/* background-image: -webkit-radial-gradient( #666, #262626 ); */
}
#gen-input {
font-size:40px;
background:none;
border:none;
border-bottom:1px solid #ccc;
color:#fff;
outline:none;
margin: 20px auto 0 auto;
padding: 10px 20px;
-webkit-transition: background-color .2s ease;
}
#generator-frame canvas, #generator-frame img {
position: absolute;
top: 0px;
left: 0px;
}
#generator-frame img {
opacity: .3;
}
.img-back {
-webkit-animation: ROTATE-RIGHT 800s infinite linear;
-moz-animation: ROTATE-RIGHT 800s infinite linear;
-ms-animation: ROTATE-RIGHT 800s infinite linear;
-o-animation: ROTATE-RIGHT 800s infinite linear;
}
.img-front {
-webkit-animation: ROTATE-LEFT 500s infinite linear;
-moz-animation: ROTATE-LEFT 500s infinite linear;
-ms-animation: ROTATE-LEFT 500s infinite linear;
-o-animation: ROTATE-LEFT 500s infinite linear;
opacity: .1;
}
@-webkit-keyframes ROTATE-RIGHT {
0% { -webkit-transform: rotate( 0deg ) scale( 1.1 ) }
100% { -webkit-transform: rotate( 360deg ) scale( 1.1 ) }
}
@-webkit-keyframes ROTATE-LEFT {
0% { -webkit-transform: rotate( 0deg ) scale( 1.2 ) }
100% { -webkit-transform: rotate( -360deg ) scale( 1.2 ) }
}
@-moz-keyframes ROTATE-RIGHT {
0% { -moz-transform: rotate( 0deg ) scale( 1.1 ) }
100% { -moz-transform: rotate( 360deg ) scale( 1.1 ) }
}
@-moz-keyframes ROTATE-LEFT {
0% { -moz-transform: rotate( 0deg ) scale( 1.2 ) }
100% { -moz-transform: rotate( -360deg ) scale( 1.2 ) }
}
@-ms-keyframes ROTATE-RIGHT {
0% { -ms-transform: rotate( 0deg ) scale( 1.1 ) }
100% { -ms-transform: rotate( 360deg ) scale( 1.1 ) }
}
@-ms-keyframes ROTATE-LEFT {
0% { -ms-transform: rotate( 0deg ) scale( 1.2 ) }
100% { -ms-transform: rotate( -360deg ) scale( 1.2 ) }
}
@-o-keyframes ROTATE-RIGHT {
0% { -o-transform: rotate( 0deg ) scale( 1.1 ) }
100% { -o-transform: rotate( 360deg ) scale( 1.1 ) }
}
@-o-keyframes ROTATE-LEFT {
0% { -o-transform: rotate( 0deg ) scale( 1.2 ) }
100% { -o-transform: rotate( -360deg ) scale( 1.2 ) }
}
</style>
<meta class="canonical" property="canonical" content="http://push-conference.com"/>
<meta property="og:image" content="img/fb-placeholder.jpg">
<meta property="og:title" content="I created something with the push.generator!">
<title>push.generator</title>
</head>
<body>
<div id="generator-frame">
<div id="generator">
<img class="img-back" src="img/push-bg-back.png" >
<img class="img-front" src="img/push-bg-front.png">
</div>
<input type="text" id="gen-input" placeholder="type here">
</div>
<button style="position:absolute" id="gen-share">Render to image</button>
</body>
</html>