-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfigure.php
269 lines (239 loc) · 9.42 KB
/
configure.php
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Flipstatus</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet">
</head>
<body>
<div class="topbar">
<div class="fill">
<div class="container">
<div class="brand">
<img class="logo" src="img/logo.png" alt="flipstatus - a virtual Solari Board solution"/>
</div>
</div>
</div>
<div class="subhead">
<div class="container">
<div class="pull-right">
<ul class="nav">
<li><a href="#about" data-controls-modal="about">About</a></li>
<li><a href="mailto:pbutler@basdesign.com" >Contact</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container" style="margin-top:160px;">
<form>
<section id="source">
<!-- twitter -->
<div class="row">
<div class="span3"><h1>Source</h1></div>
<div class="span5">
<h3><img src="img/logos/twitter.png" class="sourceLogo"/>Twitter</h3>
<p>Enter as many usernames, hashtags and/or words as you'd like, separated by spaces. Flipstatus will search Twitter and return the most recent results.</p>
</div>
<div class="span8">
<fieldset>
<input class="span8" type="text" name="twitter" />
<span class="help-block">
Example: "@baspete #flipstatus statusboard"
</span>
<br/>
<input type="checkbox" name="noMention" />
<span>Don't include mentions</span>
</fieldset>
</div>
</div>
<!-- rss -->
<!--
<div class="row">
<div class="span3"> </div>
<div class="span5">
<h3><img src="img/logos/rss.png" class="sourceLogo"/>RSS</h3>
<p>Enter an RSS Feed URL:</p>
</div>
<div class="span8">
<fieldset>
<input class="span8" type="text" name="rss" />
<span class="help-block">
Example: ""
</span>
<br/>
<input type="checkbox" name="rss_summary" />
<span>Include Summary</span>
</fieldset>
</div>
</div>
-->
<!-- Coming Soon -->
<div class="row">
<div class="span3"> </div>
<div class="span5">
<h5>Coming Soon:</h5>
<img src="img/logos/sms.png" class="sourceLogo" alt="sms"/>
<img src="img/logos/facebook.png" class="sourceLogo" alt="facebook"/>
<img src="img/logos/yelp.png" class="sourceLogo" alt="yelp"/>
<img src="img/logos/foursquare.png" class="sourceLogo" alt="foursquare"/>
<img src="img/logos/mail.png" class="sourceLogo" alt="mail"/>
</div>
</div>
</section>
<section id="size" style="margin-top:40px;">
<div class="row">
<div class="span3"><h1>Size</h1></div>
<div class="span5">
<p>Pick the display size of your TV or monitor, or enter a custom height and width.</p>
<p>Set your browser to <b>FULL SCREEN</b> mode now.</p>
<p>If you're using an external monitor or HDTV, this is a good time to hook it up.</p>
</div>
<div class="span8">
<div class="clearfix">
<label>HDTV</label>
<div class="input">
<ul class="inputs-list">
<li>
<label>
<input type="radio" name="size" checked="checked" value="hd1080">
<span>1080p</span>
</label>
</li>
</ul>
</div>
</div>
<div class="clearfix">
<label>Computer Monitors</label>
<div class="input">
<ul class="inputs-list">
<li>
<label>
<input type="radio" name="size" value="1280x1024">
<span>1280 x 1024</span>
</label>
</li>
<li>
<label>
<input type="radio" name="size" value="1280x800">
<span>1280 x 800</span>
</label>
</li>
<li>
<label>
<input type="radio" name="size" value="1440x900">
<span>1440 x 900</span>
</label>
</li>
<li>
<label>
<input type="radio" name="size" value="1366x768">
<span>1366 x 768</span>
</label>
</li>
</ul>
</div>
</div>
</div>
</div>
</section>
<section id="title" style="margin-top:40px;">
<div class="row">
<div class="span3"><h1>Title</h1></div>
<div class="span5">
<p>Your title will appear at the top of the board.</p>
<p>If you want to make changes, clicking anywhere on the display or pressing "enter" will bring you back to this page.</p>
</div>
<div class="span8">
<fieldset>
<input class="span8" type="text" name="title" />
<span class="help-block">
Example: "Recent Twitter Activity"
</span>
</fieldset>
</div>
</div>
</section>
<section style="margin-top:40px;">
<div class="row">
<div class="span8"> </div>
<div class="span8">
<button class="btn large primary">Show Me The Board!</button>
</div>
</div>
</section>
</form>
</div><!-- /container -->
<footer>
<div class="container">
Copyright 2012 BAS Design, Inc.
</div>
</footer>
<div id="about" class="modal hide fade">
<div class="modal-header">
<a href="#" class="close">×</a>
<h3>What Is This Anyway?</h3>
</div>
<div class="modal-body">
<p>Flipstatus is a project from <a href="http://pete.basdesign.com" target="_blank">BAS Design Labs</a>. The idea is to use a simulated <a href="http://en.wikipedia.org/wiki/Split-flap_display" target="_blank">split-flap display</a> to keep track of feeds from around the web. At the moment, it's just Twitter, but soon we'll be adding Facebook, foursquare and Yelp, as well as the ability to pick up RSS feeds, email and SMS messages.</p>
<p><img src="img/screen_thumb.png" style="float:right;" />This is an open-source project, released under the <a href="LICENSE.txt" target="_blank">MIT License</a>. If you'd like to help make it better, feel free to check out the source code at</p>
<p><a href="https://github.com/sweetmidget/flipstatus" target="_blank">https://github.com/sweetmidget/flipstatus</a></p>
<p>Other examples of what can be done can be found in our split-flap project at</p>
<p><a href="https://github.com/sweetmidget/Split-Flap" target="_blank">https://github.com/sweetmidget/Split-Flap</a></p>
<p>And you can see working examples of those at <a href="http://dev.basdesign.com/split-flap/" target="_blank">http://dev.basdesign.com/split-flap/</a>.</p>
<p>If you've got questions or feedback, or you end up building something cool with this we'd love to hear from you. Contact us at pbutler at basdesign dot com.</p>
</div>
</div>
<!-- ============================================ -->
<!-- JS LIBRARIES -->
<script type="text/javascript" src="js/jquery-1.7.1-min.js"></script>
<script type="text/javascript" src="js/bootstrap-modal.js"></script>
<script type="text/javascript">
$("document").ready(function(){
$("#about, #contact").modal({"backdrop":true,"keyboard":true});
$("form").submit(function(){
// TWITTER
var tStr = "",
tWords = $("input[name=twitter]").val().split(" "),
tSep = "";
// split input at spaces
for(var i=0;i<tWords.length;i++){
var text = tWords[i];
if(text.charAt(0) === "@"){
text = text.substr(1);
tStr += tSep + "from:"+text+" OR to:"+text;
// pick up the "mentions" checkbox
if($("input[name=noMention]:checked").length === 0){
tStr += " OR @"+text;
}
} else {
tStr += tSep + text;
}
tSep = " OR ";
}
var twitter = encodeURIComponent(tStr);
// RSS
var rssUrl = $("input[name=rss]").val(),
rss = encodeURIComponent(rssUrl);
var size = $("input[name=size]:checked").val();
// encodeURIComponent to escape hashes
var title = encodeURIComponent($("input[name=title]").val());
url = "statusboard.php?"
+ "twitter=" + twitter
+ "&rss=" + rss
+ "&size=" + size
+ "&title=" + title;
window.location = url;
return false;
});
});
</script>
</body>
</html>