├── .gitignore ├── README.md ├── controllers ├── calendar.php ├── functions │ └── gzip.php ├── hash.php └── modules.php ├── css ├── font-awesome.css ├── main.css └── weather-icons.css ├── font ├── HelveticaNeue-Light.eot ├── HelveticaNeue-Light.svg ├── HelveticaNeue-Light.ttf ├── HelveticaNeue-Light.woff ├── HelveticaNeue-Medium.eot ├── HelveticaNeue-Medium.svg ├── HelveticaNeue-Medium.ttf ├── HelveticaNeue-Medium.woff ├── HelveticaNeue-UltraLight.eot ├── HelveticaNeue-UltraLight.svg ├── HelveticaNeue-UltraLight.ttf ├── HelveticaNeue-UltraLight.woff ├── MFYueHeiNoncommercial-ExLight.eot ├── MFYueHeiNoncommercial-ExLight.svg ├── MFYueHeiNoncommercial-ExLight.ttf ├── MFYueHeiNoncommercial-ExLight.woff ├── MFYueHeiNoncommercial-Light.eot ├── MFYueHeiNoncommercial-Light.svg ├── MFYueHeiNoncommercial-Light.ttf ├── MFYueHeiNoncommercial-Light.woff ├── MFYueHeiNoncommercial-UltLight.eot ├── MFYueHeiNoncommercial-UltLight.svg ├── MFYueHeiNoncommercial-UltLight.ttf ├── MFYueHeiNoncommercial-UltLight.woff ├── fontawesome-webfont.eot ├── fontawesome-webfont.svg ├── fontawesome-webfont.ttf ├── fontawesome-webfont.woff ├── fontawesome-webfont.woff2 ├── weathericons-regular-webfont.eot ├── weathericons-regular-webfont.svg ├── weathericons-regular-webfont.ttf └── weathericons-regular-webfont.woff ├── index.php ├── js ├── calendar │ └── calendar.js ├── compliments │ └── compliments.js ├── config.js ├── ical_parser.js ├── jquery.feedToJSON.js ├── jquery.js ├── main.js ├── moment-with-locales.min.js ├── news │ └── news.js ├── paho │ ├── CONTRIBUTING.md │ ├── about.html │ ├── edl-v10 │ ├── epl-v10 │ ├── mqttws31-min.js │ └── mqttws31.js ├── rrule.js ├── socket.io.min.js ├── temp_hum │ └── tem_hum.js ├── time │ └── time.js ├── version │ └── version.js └── weather │ └── weather.js ├── logo.png ├── modules ├── README.md └── test-module │ ├── elements.html │ ├── include.php │ ├── main.js │ └── style.css └── pi ├── README.md ├── blink.php ├── control.php └── i.php /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | 3 | CMakeCache.txt 4 | CMakeFiles 5 | CMakeScripts 6 | Makefile 7 | cmake_install.cmake 8 | install_manifest.txt 9 | 10 | # Byte-compiled / optimized / DLL files 11 | __pycache__/ 12 | *.py[cod] 13 | *$py.class 14 | 15 | # C extensions 16 | *.so 17 | 18 | # Distribution / packaging 19 | .Python 20 | env/ 21 | build/ 22 | develop-eggs/ 23 | dist/ 24 | downloads/ 25 | eggs/ 26 | .eggs/ 27 | lib/ 28 | lib64/ 29 | parts/ 30 | sdist/ 31 | var/ 32 | *.egg-info/ 33 | .installed.cfg 34 | *.egg 35 | 36 | # PyInstaller 37 | # Usually these files are written by a python script from a template 38 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 39 | *.manifest 40 | *.spec 41 | 42 | # Installer logs 43 | pip-log.txt 44 | pip-delete-this-directory.txt 45 | 46 | # Unit test / coverage reports 47 | htmlcov/ 48 | .tox/ 49 | .coverage 50 | .coverage.* 51 | .cache 52 | nosetests.xml 53 | coverage.xml 54 | *,cover 55 | .hypothesis/ 56 | 57 | # Translations 58 | *.mo 59 | *.pot 60 | 61 | # Django stuff: 62 | *.log 63 | local_settings.py 64 | 65 | # Flask instance folder 66 | instance/ 67 | 68 | # Scrapy stuff: 69 | .scrapy 70 | 71 | # Sphinx documentation 72 | docs/_build/ 73 | 74 | # PyBuilder 75 | target/ 76 | 77 | # IPython Notebook 78 | .ipynb_checkpoints 79 | 80 | # pyenv 81 | .python-version 82 | 83 | # celery beat schedule file 84 | celerybeat-schedule 85 | 86 | # dotenv 87 | .env 88 | 89 | # virtualenv 90 | venv/ 91 | ENV/ 92 | 93 | # Spyder project settings 94 | .spyderproject 95 | 96 | 97 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![][image-1] 2 | 3 | # This is my Magic Mirror source code. 4 | 5 | 根据 [MichMich/MagicMirror][1] 改动,内容没有变,在原基础上添加了中文字体的支持,树莓派在英文环境也可以使用中文了,避免部分同学在调中文环境时发生的问题,可以省去配置树莓派支持中文这个步骤。 6 | 7 | 添加了室内温湿的模块,如果需要的话可以在 `main.js` 里面取消注释: `tem_hum.init();` 8 | 9 | 室内温湿的模块使用的是 MQTT 接收数据,服务器地址和订阅地址可在 `config.js` 中修改。 10 | 11 | 监听的订阅地址如下: 12 | 13 | 温度: 14 | 15 | homekit/himitsu/temperature 16 | 17 | 湿度: 18 | 19 | homekit/himitsu/humidity 20 | 21 | 体感温度: 22 | 23 | homekit/himitsu/heatIndex 24 | 25 | 26 | # 下面是改后的样子: 27 | 28 | ![][image-2] 29 | 30 | [1]: https://github.com/MichMich/MagicMirror 31 | 32 | [image-1]: logo.png 33 | [image-2]: http://7xr14u.com1.z0.glb.clouddn.com/magicmirror.png 34 | 35 | 36 | -------------------------------------------------------------------------------- /controllers/calendar.php: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /controllers/functions/gzip.php: -------------------------------------------------------------------------------- 1 | array( 14 | "method" => "GET", 15 | "header" => "Accept-Language: en-US,en;q=0.8rn" . "Accept-Encoding: gzip,deflate,sdchrn" . "Accept-Charset:UTF-8,*;q=0.5rn" . "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0 FirePHP/0.4rn", 16 | "ignore_errors" => true 17 | ), 18 | /* 19 | * @array 20 | * Put a Band-Aid over some SSL issues. 21 | */ 22 | "ssl" => array( 23 | "verify_peer" => false, 24 | "verify_peer_name" => false 25 | ) 26 | ); 27 | $context = stream_context_create($opts); 28 | $content = file_get_contents($url, false, $context); 29 | /* 30 | * @note If http response header mentions that content is gzipped, then uncompress it. 31 | */ 32 | foreach($http_response_header as $c => $h) { 33 | if(stristr($h, "content-encoding") and stristr($h, "gzip")) { 34 | /* 35 | * @note Now, let's begin the actual purpose of this function: 36 | */ 37 | $content = gzinflate(substr($content, 10, -8)); 38 | } 39 | } 40 | return $content; 41 | } 42 | ?> 43 | -------------------------------------------------------------------------------- /controllers/hash.php: -------------------------------------------------------------------------------- 1 | trim(`git rev-parse HEAD`) 5 | ) 6 | ); 7 | ?> 8 | -------------------------------------------------------------------------------- /controllers/modules.php: -------------------------------------------------------------------------------- 1 | ' ); 7 | 8 | //Load files to include 9 | $include_files = include($module."/include.php"); 10 | //Add Javascript files 11 | foreach ($include_files["js_files"] as $file) { 12 | //Check if js file is hosted on a remote server 13 | if (preg_match('#^https?://#i', $file) === 1) { 14 | print_r(''."\xA"); 15 | } 16 | //add local path to module folder 17 | else{ 18 | print_r(''."\xA"); 19 | } 20 | }; 21 | //Add CSS files 22 | foreach ($include_files["css_files"] as $file) { 23 | //Check if css file is hosted on a remote server 24 | if (preg_match('#^https?://#i', $file) === 1) { 25 | print_r(''."\xA"); 26 | } 27 | //add local path to module folder 28 | else{ 29 | print_r(''."\xA"); 30 | } 31 | }; 32 | 33 | //Add the modules JS file 34 | print_r(''."\xA"); 35 | //Add the modules CSS file 36 | print_r(''."\xA"); 37 | //Get and add HTML Elements 38 | print_r(str_replace("[module]",$module ,file_get_contents($module.'/elements.html'))); 39 | 40 | //Close module container 41 | print_r(""); 42 | } 43 | ?> -------------------------------------------------------------------------------- /css/font-awesome.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.5.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */ 5 | /* FONT PATH 6 | * -------------------------- */ 7 | @font-face { 8 | font-family: 'FontAwesome'; 9 | src: url('../font/fontawesome-webfont.eot?v=4.5.0'); 10 | src: url('../font/fontawesome-webfont.eot?#iefix&v=4.5.0') format('embedded-opentype'), url('../font/fontawesome-webfont.woff2?v=4.5.0') format('woff2'), url('../font/fontawesome-webfont.woff?v=4.5.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.5.0') format('truetype'), url('../font/fontawesome-webfont.svg?v=4.5.0#fontawesomeregular') format('svg'); 11 | font-weight: normal; 12 | font-style: normal; 13 | } 14 | .fa { 15 | display: inline-block; 16 | font: normal normal normal 14px/1 FontAwesome; 17 | font-size: inherit; 18 | text-rendering: auto; 19 | -webkit-font-smoothing: antialiased; 20 | -moz-osx-font-smoothing: grayscale; 21 | } 22 | /* makes the font 33% larger relative to the icon container */ 23 | .fa-lg { 24 | font-size: 1.33333333em; 25 | line-height: 0.75em; 26 | vertical-align: -15%; 27 | } 28 | .fa-2x { 29 | font-size: 2em; 30 | } 31 | .fa-3x { 32 | font-size: 3em; 33 | } 34 | .fa-4x { 35 | font-size: 4em; 36 | } 37 | .fa-5x { 38 | font-size: 5em; 39 | } 40 | .fa-fw { 41 | width: 1.28571429em; 42 | text-align: center; 43 | } 44 | .fa-ul { 45 | padding-left: 0; 46 | margin-left: 2.14285714em; 47 | list-style-type: none; 48 | } 49 | .fa-ul > li { 50 | position: relative; 51 | } 52 | .fa-li { 53 | position: absolute; 54 | left: -2.14285714em; 55 | width: 2.14285714em; 56 | top: 0.14285714em; 57 | text-align: center; 58 | } 59 | .fa-li.fa-lg { 60 | left: -1.85714286em; 61 | } 62 | .fa-border { 63 | padding: .2em .25em .15em; 64 | border: solid 0.08em #eeeeee; 65 | border-radius: .1em; 66 | } 67 | .fa-pull-left { 68 | float: left; 69 | } 70 | .fa-pull-right { 71 | float: right; 72 | } 73 | .fa.fa-pull-left { 74 | margin-right: .3em; 75 | } 76 | .fa.fa-pull-right { 77 | margin-left: .3em; 78 | } 79 | /* Deprecated as of 4.4.0 */ 80 | .pull-right { 81 | float: right; 82 | } 83 | .pull-left { 84 | float: left; 85 | } 86 | .fa.pull-left { 87 | margin-right: .3em; 88 | } 89 | .fa.pull-right { 90 | margin-left: .3em; 91 | } 92 | .fa-spin { 93 | -webkit-animation: fa-spin 2s infinite linear; 94 | animation: fa-spin 2s infinite linear; 95 | } 96 | .fa-pulse { 97 | -webkit-animation: fa-spin 1s infinite steps(8); 98 | animation: fa-spin 1s infinite steps(8); 99 | } 100 | @-webkit-keyframes fa-spin { 101 | 0% { 102 | -webkit-transform: rotate(0deg); 103 | transform: rotate(0deg); 104 | } 105 | 100% { 106 | -webkit-transform: rotate(359deg); 107 | transform: rotate(359deg); 108 | } 109 | } 110 | @keyframes fa-spin { 111 | 0% { 112 | -webkit-transform: rotate(0deg); 113 | transform: rotate(0deg); 114 | } 115 | 100% { 116 | -webkit-transform: rotate(359deg); 117 | transform: rotate(359deg); 118 | } 119 | } 120 | .fa-rotate-90 { 121 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); 122 | -webkit-transform: rotate(90deg); 123 | -ms-transform: rotate(90deg); 124 | transform: rotate(90deg); 125 | } 126 | .fa-rotate-180 { 127 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); 128 | -webkit-transform: rotate(180deg); 129 | -ms-transform: rotate(180deg); 130 | transform: rotate(180deg); 131 | } 132 | .fa-rotate-270 { 133 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); 134 | -webkit-transform: rotate(270deg); 135 | -ms-transform: rotate(270deg); 136 | transform: rotate(270deg); 137 | } 138 | .fa-flip-horizontal { 139 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1); 140 | -webkit-transform: scale(-1, 1); 141 | -ms-transform: scale(-1, 1); 142 | transform: scale(-1, 1); 143 | } 144 | .fa-flip-vertical { 145 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1); 146 | -webkit-transform: scale(1, -1); 147 | -ms-transform: scale(1, -1); 148 | transform: scale(1, -1); 149 | } 150 | :root .fa-rotate-90, 151 | :root .fa-rotate-180, 152 | :root .fa-rotate-270, 153 | :root .fa-flip-horizontal, 154 | :root .fa-flip-vertical { 155 | filter: none; 156 | } 157 | .fa-stack { 158 | position: relative; 159 | display: inline-block; 160 | width: 2em; 161 | height: 2em; 162 | line-height: 2em; 163 | vertical-align: middle; 164 | } 165 | .fa-stack-1x, 166 | .fa-stack-2x { 167 | position: absolute; 168 | left: 0; 169 | width: 100%; 170 | text-align: center; 171 | } 172 | .fa-stack-1x { 173 | line-height: inherit; 174 | } 175 | .fa-stack-2x { 176 | font-size: 2em; 177 | } 178 | .fa-inverse { 179 | color: #ffffff; 180 | } 181 | /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen 182 | readers do not read off random characters that represent icons */ 183 | .fa-glass:before { 184 | content: "\f000"; 185 | } 186 | .fa-music:before { 187 | content: "\f001"; 188 | } 189 | .fa-search:before { 190 | content: "\f002"; 191 | } 192 | .fa-envelope-o:before { 193 | content: "\f003"; 194 | } 195 | .fa-heart:before { 196 | content: "\f004"; 197 | } 198 | .fa-star:before { 199 | content: "\f005"; 200 | } 201 | .fa-star-o:before { 202 | content: "\f006"; 203 | } 204 | .fa-user:before { 205 | content: "\f007"; 206 | } 207 | .fa-film:before { 208 | content: "\f008"; 209 | } 210 | .fa-th-large:before { 211 | content: "\f009"; 212 | } 213 | .fa-th:before { 214 | content: "\f00a"; 215 | } 216 | .fa-th-list:before { 217 | content: "\f00b"; 218 | } 219 | .fa-check:before { 220 | content: "\f00c"; 221 | } 222 | .fa-remove:before, 223 | .fa-close:before, 224 | .fa-times:before { 225 | content: "\f00d"; 226 | } 227 | .fa-search-plus:before { 228 | content: "\f00e"; 229 | } 230 | .fa-search-minus:before { 231 | content: "\f010"; 232 | } 233 | .fa-power-off:before { 234 | content: "\f011"; 235 | } 236 | .fa-signal:before { 237 | content: "\f012"; 238 | } 239 | .fa-gear:before, 240 | .fa-cog:before { 241 | content: "\f013"; 242 | } 243 | .fa-trash-o:before { 244 | content: "\f014"; 245 | } 246 | .fa-home:before { 247 | content: "\f015"; 248 | } 249 | .fa-file-o:before { 250 | content: "\f016"; 251 | } 252 | .fa-clock-o:before { 253 | content: "\f017"; 254 | } 255 | .fa-road:before { 256 | content: "\f018"; 257 | } 258 | .fa-download:before { 259 | content: "\f019"; 260 | } 261 | .fa-arrow-circle-o-down:before { 262 | content: "\f01a"; 263 | } 264 | .fa-arrow-circle-o-up:before { 265 | content: "\f01b"; 266 | } 267 | .fa-inbox:before { 268 | content: "\f01c"; 269 | } 270 | .fa-play-circle-o:before { 271 | content: "\f01d"; 272 | } 273 | .fa-rotate-right:before, 274 | .fa-repeat:before { 275 | content: "\f01e"; 276 | } 277 | .fa-refresh:before { 278 | content: "\f021"; 279 | } 280 | .fa-list-alt:before { 281 | content: "\f022"; 282 | } 283 | .fa-lock:before { 284 | content: "\f023"; 285 | } 286 | .fa-flag:before { 287 | content: "\f024"; 288 | } 289 | .fa-headphones:before { 290 | content: "\f025"; 291 | } 292 | .fa-volume-off:before { 293 | content: "\f026"; 294 | } 295 | .fa-volume-down:before { 296 | content: "\f027"; 297 | } 298 | .fa-volume-up:before { 299 | content: "\f028"; 300 | } 301 | .fa-qrcode:before { 302 | content: "\f029"; 303 | } 304 | .fa-barcode:before { 305 | content: "\f02a"; 306 | } 307 | .fa-tag:before { 308 | content: "\f02b"; 309 | } 310 | .fa-tags:before { 311 | content: "\f02c"; 312 | } 313 | .fa-book:before { 314 | content: "\f02d"; 315 | } 316 | .fa-bookmark:before { 317 | content: "\f02e"; 318 | } 319 | .fa-print:before { 320 | content: "\f02f"; 321 | } 322 | .fa-camera:before { 323 | content: "\f030"; 324 | } 325 | .fa-font:before { 326 | content: "\f031"; 327 | } 328 | .fa-bold:before { 329 | content: "\f032"; 330 | } 331 | .fa-italic:before { 332 | content: "\f033"; 333 | } 334 | .fa-text-height:before { 335 | content: "\f034"; 336 | } 337 | .fa-text-width:before { 338 | content: "\f035"; 339 | } 340 | .fa-align-left:before { 341 | content: "\f036"; 342 | } 343 | .fa-align-center:before { 344 | content: "\f037"; 345 | } 346 | .fa-align-right:before { 347 | content: "\f038"; 348 | } 349 | .fa-align-justify:before { 350 | content: "\f039"; 351 | } 352 | .fa-list:before { 353 | content: "\f03a"; 354 | } 355 | .fa-dedent:before, 356 | .fa-outdent:before { 357 | content: "\f03b"; 358 | } 359 | .fa-indent:before { 360 | content: "\f03c"; 361 | } 362 | .fa-video-camera:before { 363 | content: "\f03d"; 364 | } 365 | .fa-photo:before, 366 | .fa-image:before, 367 | .fa-picture-o:before { 368 | content: "\f03e"; 369 | } 370 | .fa-pencil:before { 371 | content: "\f040"; 372 | } 373 | .fa-map-marker:before { 374 | content: "\f041"; 375 | } 376 | .fa-adjust:before { 377 | content: "\f042"; 378 | } 379 | .fa-tint:before { 380 | content: "\f043"; 381 | } 382 | .fa-edit:before, 383 | .fa-pencil-square-o:before { 384 | content: "\f044"; 385 | } 386 | .fa-share-square-o:before { 387 | content: "\f045"; 388 | } 389 | .fa-check-square-o:before { 390 | content: "\f046"; 391 | } 392 | .fa-arrows:before { 393 | content: "\f047"; 394 | } 395 | .fa-step-backward:before { 396 | content: "\f048"; 397 | } 398 | .fa-fast-backward:before { 399 | content: "\f049"; 400 | } 401 | .fa-backward:before { 402 | content: "\f04a"; 403 | } 404 | .fa-play:before { 405 | content: "\f04b"; 406 | } 407 | .fa-pause:before { 408 | content: "\f04c"; 409 | } 410 | .fa-stop:before { 411 | content: "\f04d"; 412 | } 413 | .fa-forward:before { 414 | content: "\f04e"; 415 | } 416 | .fa-fast-forward:before { 417 | content: "\f050"; 418 | } 419 | .fa-step-forward:before { 420 | content: "\f051"; 421 | } 422 | .fa-eject:before { 423 | content: "\f052"; 424 | } 425 | .fa-chevron-left:before { 426 | content: "\f053"; 427 | } 428 | .fa-chevron-right:before { 429 | content: "\f054"; 430 | } 431 | .fa-plus-circle:before { 432 | content: "\f055"; 433 | } 434 | .fa-minus-circle:before { 435 | content: "\f056"; 436 | } 437 | .fa-times-circle:before { 438 | content: "\f057"; 439 | } 440 | .fa-check-circle:before { 441 | content: "\f058"; 442 | } 443 | .fa-question-circle:before { 444 | content: "\f059"; 445 | } 446 | .fa-info-circle:before { 447 | content: "\f05a"; 448 | } 449 | .fa-crosshairs:before { 450 | content: "\f05b"; 451 | } 452 | .fa-times-circle-o:before { 453 | content: "\f05c"; 454 | } 455 | .fa-check-circle-o:before { 456 | content: "\f05d"; 457 | } 458 | .fa-ban:before { 459 | content: "\f05e"; 460 | } 461 | .fa-arrow-left:before { 462 | content: "\f060"; 463 | } 464 | .fa-arrow-right:before { 465 | content: "\f061"; 466 | } 467 | .fa-arrow-up:before { 468 | content: "\f062"; 469 | } 470 | .fa-arrow-down:before { 471 | content: "\f063"; 472 | } 473 | .fa-mail-forward:before, 474 | .fa-share:before { 475 | content: "\f064"; 476 | } 477 | .fa-expand:before { 478 | content: "\f065"; 479 | } 480 | .fa-compress:before { 481 | content: "\f066"; 482 | } 483 | .fa-plus:before { 484 | content: "\f067"; 485 | } 486 | .fa-minus:before { 487 | content: "\f068"; 488 | } 489 | .fa-asterisk:before { 490 | content: "\f069"; 491 | } 492 | .fa-exclamation-circle:before { 493 | content: "\f06a"; 494 | } 495 | .fa-gift:before { 496 | content: "\f06b"; 497 | } 498 | .fa-leaf:before { 499 | content: "\f06c"; 500 | } 501 | .fa-fire:before { 502 | content: "\f06d"; 503 | } 504 | .fa-eye:before { 505 | content: "\f06e"; 506 | } 507 | .fa-eye-slash:before { 508 | content: "\f070"; 509 | } 510 | .fa-warning:before, 511 | .fa-exclamation-triangle:before { 512 | content: "\f071"; 513 | } 514 | .fa-plane:before { 515 | content: "\f072"; 516 | } 517 | .fa-calendar:before { 518 | content: "\f073"; 519 | } 520 | .fa-random:before { 521 | content: "\f074"; 522 | } 523 | .fa-comment:before { 524 | content: "\f075"; 525 | } 526 | .fa-magnet:before { 527 | content: "\f076"; 528 | } 529 | .fa-chevron-up:before { 530 | content: "\f077"; 531 | } 532 | .fa-chevron-down:before { 533 | content: "\f078"; 534 | } 535 | .fa-retweet:before { 536 | content: "\f079"; 537 | } 538 | .fa-shopping-cart:before { 539 | content: "\f07a"; 540 | } 541 | .fa-folder:before { 542 | content: "\f07b"; 543 | } 544 | .fa-folder-open:before { 545 | content: "\f07c"; 546 | } 547 | .fa-arrows-v:before { 548 | content: "\f07d"; 549 | } 550 | .fa-arrows-h:before { 551 | content: "\f07e"; 552 | } 553 | .fa-bar-chart-o:before, 554 | .fa-bar-chart:before { 555 | content: "\f080"; 556 | } 557 | .fa-twitter-square:before { 558 | content: "\f081"; 559 | } 560 | .fa-facebook-square:before { 561 | content: "\f082"; 562 | } 563 | .fa-camera-retro:before { 564 | content: "\f083"; 565 | } 566 | .fa-key:before { 567 | content: "\f084"; 568 | } 569 | .fa-gears:before, 570 | .fa-cogs:before { 571 | content: "\f085"; 572 | } 573 | .fa-comments:before { 574 | content: "\f086"; 575 | } 576 | .fa-thumbs-o-up:before { 577 | content: "\f087"; 578 | } 579 | .fa-thumbs-o-down:before { 580 | content: "\f088"; 581 | } 582 | .fa-star-half:before { 583 | content: "\f089"; 584 | } 585 | .fa-heart-o:before { 586 | content: "\f08a"; 587 | } 588 | .fa-sign-out:before { 589 | content: "\f08b"; 590 | } 591 | .fa-linkedin-square:before { 592 | content: "\f08c"; 593 | } 594 | .fa-thumb-tack:before { 595 | content: "\f08d"; 596 | } 597 | .fa-external-link:before { 598 | content: "\f08e"; 599 | } 600 | .fa-sign-in:before { 601 | content: "\f090"; 602 | } 603 | .fa-trophy:before { 604 | content: "\f091"; 605 | } 606 | .fa-github-square:before { 607 | content: "\f092"; 608 | } 609 | .fa-upload:before { 610 | content: "\f093"; 611 | } 612 | .fa-lemon-o:before { 613 | content: "\f094"; 614 | } 615 | .fa-phone:before { 616 | content: "\f095"; 617 | } 618 | .fa-square-o:before { 619 | content: "\f096"; 620 | } 621 | .fa-bookmark-o:before { 622 | content: "\f097"; 623 | } 624 | .fa-phone-square:before { 625 | content: "\f098"; 626 | } 627 | .fa-twitter:before { 628 | content: "\f099"; 629 | } 630 | .fa-facebook-f:before, 631 | .fa-facebook:before { 632 | content: "\f09a"; 633 | } 634 | .fa-github:before { 635 | content: "\f09b"; 636 | } 637 | .fa-unlock:before { 638 | content: "\f09c"; 639 | } 640 | .fa-credit-card:before { 641 | content: "\f09d"; 642 | } 643 | .fa-feed:before, 644 | .fa-rss:before { 645 | content: "\f09e"; 646 | } 647 | .fa-hdd-o:before { 648 | content: "\f0a0"; 649 | } 650 | .fa-bullhorn:before { 651 | content: "\f0a1"; 652 | } 653 | .fa-bell:before { 654 | content: "\f0f3"; 655 | } 656 | .fa-certificate:before { 657 | content: "\f0a3"; 658 | } 659 | .fa-hand-o-right:before { 660 | content: "\f0a4"; 661 | } 662 | .fa-hand-o-left:before { 663 | content: "\f0a5"; 664 | } 665 | .fa-hand-o-up:before { 666 | content: "\f0a6"; 667 | } 668 | .fa-hand-o-down:before { 669 | content: "\f0a7"; 670 | } 671 | .fa-arrow-circle-left:before { 672 | content: "\f0a8"; 673 | } 674 | .fa-arrow-circle-right:before { 675 | content: "\f0a9"; 676 | } 677 | .fa-arrow-circle-up:before { 678 | content: "\f0aa"; 679 | } 680 | .fa-arrow-circle-down:before { 681 | content: "\f0ab"; 682 | } 683 | .fa-globe:before { 684 | content: "\f0ac"; 685 | } 686 | .fa-wrench:before { 687 | content: "\f0ad"; 688 | } 689 | .fa-tasks:before { 690 | content: "\f0ae"; 691 | } 692 | .fa-filter:before { 693 | content: "\f0b0"; 694 | } 695 | .fa-briefcase:before { 696 | content: "\f0b1"; 697 | } 698 | .fa-arrows-alt:before { 699 | content: "\f0b2"; 700 | } 701 | .fa-group:before, 702 | .fa-users:before { 703 | content: "\f0c0"; 704 | } 705 | .fa-chain:before, 706 | .fa-link:before { 707 | content: "\f0c1"; 708 | } 709 | .fa-cloud:before { 710 | content: "\f0c2"; 711 | } 712 | .fa-flask:before { 713 | content: "\f0c3"; 714 | } 715 | .fa-cut:before, 716 | .fa-scissors:before { 717 | content: "\f0c4"; 718 | } 719 | .fa-copy:before, 720 | .fa-files-o:before { 721 | content: "\f0c5"; 722 | } 723 | .fa-paperclip:before { 724 | content: "\f0c6"; 725 | } 726 | .fa-save:before, 727 | .fa-floppy-o:before { 728 | content: "\f0c7"; 729 | } 730 | .fa-square:before { 731 | content: "\f0c8"; 732 | } 733 | .fa-navicon:before, 734 | .fa-reorder:before, 735 | .fa-bars:before { 736 | content: "\f0c9"; 737 | } 738 | .fa-list-ul:before { 739 | content: "\f0ca"; 740 | } 741 | .fa-list-ol:before { 742 | content: "\f0cb"; 743 | } 744 | .fa-strikethrough:before { 745 | content: "\f0cc"; 746 | } 747 | .fa-underline:before { 748 | content: "\f0cd"; 749 | } 750 | .fa-table:before { 751 | content: "\f0ce"; 752 | } 753 | .fa-magic:before { 754 | content: "\f0d0"; 755 | } 756 | .fa-truck:before { 757 | content: "\f0d1"; 758 | } 759 | .fa-pinterest:before { 760 | content: "\f0d2"; 761 | } 762 | .fa-pinterest-square:before { 763 | content: "\f0d3"; 764 | } 765 | .fa-google-plus-square:before { 766 | content: "\f0d4"; 767 | } 768 | .fa-google-plus:before { 769 | content: "\f0d5"; 770 | } 771 | .fa-money:before { 772 | content: "\f0d6"; 773 | } 774 | .fa-caret-down:before { 775 | content: "\f0d7"; 776 | } 777 | .fa-caret-up:before { 778 | content: "\f0d8"; 779 | } 780 | .fa-caret-left:before { 781 | content: "\f0d9"; 782 | } 783 | .fa-caret-right:before { 784 | content: "\f0da"; 785 | } 786 | .fa-columns:before { 787 | content: "\f0db"; 788 | } 789 | .fa-unsorted:before, 790 | .fa-sort:before { 791 | content: "\f0dc"; 792 | } 793 | .fa-sort-down:before, 794 | .fa-sort-desc:before { 795 | content: "\f0dd"; 796 | } 797 | .fa-sort-up:before, 798 | .fa-sort-asc:before { 799 | content: "\f0de"; 800 | } 801 | .fa-envelope:before { 802 | content: "\f0e0"; 803 | } 804 | .fa-linkedin:before { 805 | content: "\f0e1"; 806 | } 807 | .fa-rotate-left:before, 808 | .fa-undo:before { 809 | content: "\f0e2"; 810 | } 811 | .fa-legal:before, 812 | .fa-gavel:before { 813 | content: "\f0e3"; 814 | } 815 | .fa-dashboard:before, 816 | .fa-tachometer:before { 817 | content: "\f0e4"; 818 | } 819 | .fa-comment-o:before { 820 | content: "\f0e5"; 821 | } 822 | .fa-comments-o:before { 823 | content: "\f0e6"; 824 | } 825 | .fa-flash:before, 826 | .fa-bolt:before { 827 | content: "\f0e7"; 828 | } 829 | .fa-sitemap:before { 830 | content: "\f0e8"; 831 | } 832 | .fa-umbrella:before { 833 | content: "\f0e9"; 834 | } 835 | .fa-paste:before, 836 | .fa-clipboard:before { 837 | content: "\f0ea"; 838 | } 839 | .fa-lightbulb-o:before { 840 | content: "\f0eb"; 841 | } 842 | .fa-exchange:before { 843 | content: "\f0ec"; 844 | } 845 | .fa-cloud-download:before { 846 | content: "\f0ed"; 847 | } 848 | .fa-cloud-upload:before { 849 | content: "\f0ee"; 850 | } 851 | .fa-user-md:before { 852 | content: "\f0f0"; 853 | } 854 | .fa-stethoscope:before { 855 | content: "\f0f1"; 856 | } 857 | .fa-suitcase:before { 858 | content: "\f0f2"; 859 | } 860 | .fa-bell-o:before { 861 | content: "\f0a2"; 862 | } 863 | .fa-coffee:before { 864 | content: "\f0f4"; 865 | } 866 | .fa-cutlery:before { 867 | content: "\f0f5"; 868 | } 869 | .fa-file-text-o:before { 870 | content: "\f0f6"; 871 | } 872 | .fa-building-o:before { 873 | content: "\f0f7"; 874 | } 875 | .fa-hospital-o:before { 876 | content: "\f0f8"; 877 | } 878 | .fa-ambulance:before { 879 | content: "\f0f9"; 880 | } 881 | .fa-medkit:before { 882 | content: "\f0fa"; 883 | } 884 | .fa-fighter-jet:before { 885 | content: "\f0fb"; 886 | } 887 | .fa-beer:before { 888 | content: "\f0fc"; 889 | } 890 | .fa-h-square:before { 891 | content: "\f0fd"; 892 | } 893 | .fa-plus-square:before { 894 | content: "\f0fe"; 895 | } 896 | .fa-angle-double-left:before { 897 | content: "\f100"; 898 | } 899 | .fa-angle-double-right:before { 900 | content: "\f101"; 901 | } 902 | .fa-angle-double-up:before { 903 | content: "\f102"; 904 | } 905 | .fa-angle-double-down:before { 906 | content: "\f103"; 907 | } 908 | .fa-angle-left:before { 909 | content: "\f104"; 910 | } 911 | .fa-angle-right:before { 912 | content: "\f105"; 913 | } 914 | .fa-angle-up:before { 915 | content: "\f106"; 916 | } 917 | .fa-angle-down:before { 918 | content: "\f107"; 919 | } 920 | .fa-desktop:before { 921 | content: "\f108"; 922 | } 923 | .fa-laptop:before { 924 | content: "\f109"; 925 | } 926 | .fa-tablet:before { 927 | content: "\f10a"; 928 | } 929 | .fa-mobile-phone:before, 930 | .fa-mobile:before { 931 | content: "\f10b"; 932 | } 933 | .fa-circle-o:before { 934 | content: "\f10c"; 935 | } 936 | .fa-quote-left:before { 937 | content: "\f10d"; 938 | } 939 | .fa-quote-right:before { 940 | content: "\f10e"; 941 | } 942 | .fa-spinner:before { 943 | content: "\f110"; 944 | } 945 | .fa-circle:before { 946 | content: "\f111"; 947 | } 948 | .fa-mail-reply:before, 949 | .fa-reply:before { 950 | content: "\f112"; 951 | } 952 | .fa-github-alt:before { 953 | content: "\f113"; 954 | } 955 | .fa-folder-o:before { 956 | content: "\f114"; 957 | } 958 | .fa-folder-open-o:before { 959 | content: "\f115"; 960 | } 961 | .fa-smile-o:before { 962 | content: "\f118"; 963 | } 964 | .fa-frown-o:before { 965 | content: "\f119"; 966 | } 967 | .fa-meh-o:before { 968 | content: "\f11a"; 969 | } 970 | .fa-gamepad:before { 971 | content: "\f11b"; 972 | } 973 | .fa-keyboard-o:before { 974 | content: "\f11c"; 975 | } 976 | .fa-flag-o:before { 977 | content: "\f11d"; 978 | } 979 | .fa-flag-checkered:before { 980 | content: "\f11e"; 981 | } 982 | .fa-terminal:before { 983 | content: "\f120"; 984 | } 985 | .fa-code:before { 986 | content: "\f121"; 987 | } 988 | .fa-mail-reply-all:before, 989 | .fa-reply-all:before { 990 | content: "\f122"; 991 | } 992 | .fa-star-half-empty:before, 993 | .fa-star-half-full:before, 994 | .fa-star-half-o:before { 995 | content: "\f123"; 996 | } 997 | .fa-location-arrow:before { 998 | content: "\f124"; 999 | } 1000 | .fa-crop:before { 1001 | content: "\f125"; 1002 | } 1003 | .fa-code-fork:before { 1004 | content: "\f126"; 1005 | } 1006 | .fa-unlink:before, 1007 | .fa-chain-broken:before { 1008 | content: "\f127"; 1009 | } 1010 | .fa-question:before { 1011 | content: "\f128"; 1012 | } 1013 | .fa-info:before { 1014 | content: "\f129"; 1015 | } 1016 | .fa-exclamation:before { 1017 | content: "\f12a"; 1018 | } 1019 | .fa-superscript:before { 1020 | content: "\f12b"; 1021 | } 1022 | .fa-subscript:before { 1023 | content: "\f12c"; 1024 | } 1025 | .fa-eraser:before { 1026 | content: "\f12d"; 1027 | } 1028 | .fa-puzzle-piece:before { 1029 | content: "\f12e"; 1030 | } 1031 | .fa-microphone:before { 1032 | content: "\f130"; 1033 | } 1034 | .fa-microphone-slash:before { 1035 | content: "\f131"; 1036 | } 1037 | .fa-shield:before { 1038 | content: "\f132"; 1039 | } 1040 | .fa-calendar-o:before { 1041 | content: "\f133"; 1042 | } 1043 | .fa-fire-extinguisher:before { 1044 | content: "\f134"; 1045 | } 1046 | .fa-rocket:before { 1047 | content: "\f135"; 1048 | } 1049 | .fa-maxcdn:before { 1050 | content: "\f136"; 1051 | } 1052 | .fa-chevron-circle-left:before { 1053 | content: "\f137"; 1054 | } 1055 | .fa-chevron-circle-right:before { 1056 | content: "\f138"; 1057 | } 1058 | .fa-chevron-circle-up:before { 1059 | content: "\f139"; 1060 | } 1061 | .fa-chevron-circle-down:before { 1062 | content: "\f13a"; 1063 | } 1064 | .fa-html5:before { 1065 | content: "\f13b"; 1066 | } 1067 | .fa-css3:before { 1068 | content: "\f13c"; 1069 | } 1070 | .fa-anchor:before { 1071 | content: "\f13d"; 1072 | } 1073 | .fa-unlock-alt:before { 1074 | content: "\f13e"; 1075 | } 1076 | .fa-bullseye:before { 1077 | content: "\f140"; 1078 | } 1079 | .fa-ellipsis-h:before { 1080 | content: "\f141"; 1081 | } 1082 | .fa-ellipsis-v:before { 1083 | content: "\f142"; 1084 | } 1085 | .fa-rss-square:before { 1086 | content: "\f143"; 1087 | } 1088 | .fa-play-circle:before { 1089 | content: "\f144"; 1090 | } 1091 | .fa-ticket:before { 1092 | content: "\f145"; 1093 | } 1094 | .fa-minus-square:before { 1095 | content: "\f146"; 1096 | } 1097 | .fa-minus-square-o:before { 1098 | content: "\f147"; 1099 | } 1100 | .fa-level-up:before { 1101 | content: "\f148"; 1102 | } 1103 | .fa-level-down:before { 1104 | content: "\f149"; 1105 | } 1106 | .fa-check-square:before { 1107 | content: "\f14a"; 1108 | } 1109 | .fa-pencil-square:before { 1110 | content: "\f14b"; 1111 | } 1112 | .fa-external-link-square:before { 1113 | content: "\f14c"; 1114 | } 1115 | .fa-share-square:before { 1116 | content: "\f14d"; 1117 | } 1118 | .fa-compass:before { 1119 | content: "\f14e"; 1120 | } 1121 | .fa-toggle-down:before, 1122 | .fa-caret-square-o-down:before { 1123 | content: "\f150"; 1124 | } 1125 | .fa-toggle-up:before, 1126 | .fa-caret-square-o-up:before { 1127 | content: "\f151"; 1128 | } 1129 | .fa-toggle-right:before, 1130 | .fa-caret-square-o-right:before { 1131 | content: "\f152"; 1132 | } 1133 | .fa-euro:before, 1134 | .fa-eur:before { 1135 | content: "\f153"; 1136 | } 1137 | .fa-gbp:before { 1138 | content: "\f154"; 1139 | } 1140 | .fa-dollar:before, 1141 | .fa-usd:before { 1142 | content: "\f155"; 1143 | } 1144 | .fa-rupee:before, 1145 | .fa-inr:before { 1146 | content: "\f156"; 1147 | } 1148 | .fa-cny:before, 1149 | .fa-rmb:before, 1150 | .fa-yen:before, 1151 | .fa-jpy:before { 1152 | content: "\f157"; 1153 | } 1154 | .fa-ruble:before, 1155 | .fa-rouble:before, 1156 | .fa-rub:before { 1157 | content: "\f158"; 1158 | } 1159 | .fa-won:before, 1160 | .fa-krw:before { 1161 | content: "\f159"; 1162 | } 1163 | .fa-bitcoin:before, 1164 | .fa-btc:before { 1165 | content: "\f15a"; 1166 | } 1167 | .fa-file:before { 1168 | content: "\f15b"; 1169 | } 1170 | .fa-file-text:before { 1171 | content: "\f15c"; 1172 | } 1173 | .fa-sort-alpha-asc:before { 1174 | content: "\f15d"; 1175 | } 1176 | .fa-sort-alpha-desc:before { 1177 | content: "\f15e"; 1178 | } 1179 | .fa-sort-amount-asc:before { 1180 | content: "\f160"; 1181 | } 1182 | .fa-sort-amount-desc:before { 1183 | content: "\f161"; 1184 | } 1185 | .fa-sort-numeric-asc:before { 1186 | content: "\f162"; 1187 | } 1188 | .fa-sort-numeric-desc:before { 1189 | content: "\f163"; 1190 | } 1191 | .fa-thumbs-up:before { 1192 | content: "\f164"; 1193 | } 1194 | .fa-thumbs-down:before { 1195 | content: "\f165"; 1196 | } 1197 | .fa-youtube-square:before { 1198 | content: "\f166"; 1199 | } 1200 | .fa-youtube:before { 1201 | content: "\f167"; 1202 | } 1203 | .fa-xing:before { 1204 | content: "\f168"; 1205 | } 1206 | .fa-xing-square:before { 1207 | content: "\f169"; 1208 | } 1209 | .fa-youtube-play:before { 1210 | content: "\f16a"; 1211 | } 1212 | .fa-dropbox:before { 1213 | content: "\f16b"; 1214 | } 1215 | .fa-stack-overflow:before { 1216 | content: "\f16c"; 1217 | } 1218 | .fa-instagram:before { 1219 | content: "\f16d"; 1220 | } 1221 | .fa-flickr:before { 1222 | content: "\f16e"; 1223 | } 1224 | .fa-adn:before { 1225 | content: "\f170"; 1226 | } 1227 | .fa-bitbucket:before { 1228 | content: "\f171"; 1229 | } 1230 | .fa-bitbucket-square:before { 1231 | content: "\f172"; 1232 | } 1233 | .fa-tumblr:before { 1234 | content: "\f173"; 1235 | } 1236 | .fa-tumblr-square:before { 1237 | content: "\f174"; 1238 | } 1239 | .fa-long-arrow-down:before { 1240 | content: "\f175"; 1241 | } 1242 | .fa-long-arrow-up:before { 1243 | content: "\f176"; 1244 | } 1245 | .fa-long-arrow-left:before { 1246 | content: "\f177"; 1247 | } 1248 | .fa-long-arrow-right:before { 1249 | content: "\f178"; 1250 | } 1251 | .fa-apple:before { 1252 | content: "\f179"; 1253 | } 1254 | .fa-windows:before { 1255 | content: "\f17a"; 1256 | } 1257 | .fa-android:before { 1258 | content: "\f17b"; 1259 | } 1260 | .fa-linux:before { 1261 | content: "\f17c"; 1262 | } 1263 | .fa-dribbble:before { 1264 | content: "\f17d"; 1265 | } 1266 | .fa-skype:before { 1267 | content: "\f17e"; 1268 | } 1269 | .fa-foursquare:before { 1270 | content: "\f180"; 1271 | } 1272 | .fa-trello:before { 1273 | content: "\f181"; 1274 | } 1275 | .fa-female:before { 1276 | content: "\f182"; 1277 | } 1278 | .fa-male:before { 1279 | content: "\f183"; 1280 | } 1281 | .fa-gittip:before, 1282 | .fa-gratipay:before { 1283 | content: "\f184"; 1284 | } 1285 | .fa-sun-o:before { 1286 | content: "\f185"; 1287 | } 1288 | .fa-moon-o:before { 1289 | content: "\f186"; 1290 | } 1291 | .fa-archive:before { 1292 | content: "\f187"; 1293 | } 1294 | .fa-bug:before { 1295 | content: "\f188"; 1296 | } 1297 | .fa-vk:before { 1298 | content: "\f189"; 1299 | } 1300 | .fa-weibo:before { 1301 | content: "\f18a"; 1302 | } 1303 | .fa-renren:before { 1304 | content: "\f18b"; 1305 | } 1306 | .fa-pagelines:before { 1307 | content: "\f18c"; 1308 | } 1309 | .fa-stack-exchange:before { 1310 | content: "\f18d"; 1311 | } 1312 | .fa-arrow-circle-o-right:before { 1313 | content: "\f18e"; 1314 | } 1315 | .fa-arrow-circle-o-left:before { 1316 | content: "\f190"; 1317 | } 1318 | .fa-toggle-left:before, 1319 | .fa-caret-square-o-left:before { 1320 | content: "\f191"; 1321 | } 1322 | .fa-dot-circle-o:before { 1323 | content: "\f192"; 1324 | } 1325 | .fa-wheelchair:before { 1326 | content: "\f193"; 1327 | } 1328 | .fa-vimeo-square:before { 1329 | content: "\f194"; 1330 | } 1331 | .fa-turkish-lira:before, 1332 | .fa-try:before { 1333 | content: "\f195"; 1334 | } 1335 | .fa-plus-square-o:before { 1336 | content: "\f196"; 1337 | } 1338 | .fa-space-shuttle:before { 1339 | content: "\f197"; 1340 | } 1341 | .fa-slack:before { 1342 | content: "\f198"; 1343 | } 1344 | .fa-envelope-square:before { 1345 | content: "\f199"; 1346 | } 1347 | .fa-wordpress:before { 1348 | content: "\f19a"; 1349 | } 1350 | .fa-openid:before { 1351 | content: "\f19b"; 1352 | } 1353 | .fa-institution:before, 1354 | .fa-bank:before, 1355 | .fa-university:before { 1356 | content: "\f19c"; 1357 | } 1358 | .fa-mortar-board:before, 1359 | .fa-graduation-cap:before { 1360 | content: "\f19d"; 1361 | } 1362 | .fa-yahoo:before { 1363 | content: "\f19e"; 1364 | } 1365 | .fa-google:before { 1366 | content: "\f1a0"; 1367 | } 1368 | .fa-reddit:before { 1369 | content: "\f1a1"; 1370 | } 1371 | .fa-reddit-square:before { 1372 | content: "\f1a2"; 1373 | } 1374 | .fa-stumbleupon-circle:before { 1375 | content: "\f1a3"; 1376 | } 1377 | .fa-stumbleupon:before { 1378 | content: "\f1a4"; 1379 | } 1380 | .fa-delicious:before { 1381 | content: "\f1a5"; 1382 | } 1383 | .fa-digg:before { 1384 | content: "\f1a6"; 1385 | } 1386 | .fa-pied-piper:before { 1387 | content: "\f1a7"; 1388 | } 1389 | .fa-pied-piper-alt:before { 1390 | content: "\f1a8"; 1391 | } 1392 | .fa-drupal:before { 1393 | content: "\f1a9"; 1394 | } 1395 | .fa-joomla:before { 1396 | content: "\f1aa"; 1397 | } 1398 | .fa-language:before { 1399 | content: "\f1ab"; 1400 | } 1401 | .fa-fax:before { 1402 | content: "\f1ac"; 1403 | } 1404 | .fa-building:before { 1405 | content: "\f1ad"; 1406 | } 1407 | .fa-child:before { 1408 | content: "\f1ae"; 1409 | } 1410 | .fa-paw:before { 1411 | content: "\f1b0"; 1412 | } 1413 | .fa-spoon:before { 1414 | content: "\f1b1"; 1415 | } 1416 | .fa-cube:before { 1417 | content: "\f1b2"; 1418 | } 1419 | .fa-cubes:before { 1420 | content: "\f1b3"; 1421 | } 1422 | .fa-behance:before { 1423 | content: "\f1b4"; 1424 | } 1425 | .fa-behance-square:before { 1426 | content: "\f1b5"; 1427 | } 1428 | .fa-steam:before { 1429 | content: "\f1b6"; 1430 | } 1431 | .fa-steam-square:before { 1432 | content: "\f1b7"; 1433 | } 1434 | .fa-recycle:before { 1435 | content: "\f1b8"; 1436 | } 1437 | .fa-automobile:before, 1438 | .fa-car:before { 1439 | content: "\f1b9"; 1440 | } 1441 | .fa-cab:before, 1442 | .fa-taxi:before { 1443 | content: "\f1ba"; 1444 | } 1445 | .fa-tree:before { 1446 | content: "\f1bb"; 1447 | } 1448 | .fa-spotify:before { 1449 | content: "\f1bc"; 1450 | } 1451 | .fa-deviantart:before { 1452 | content: "\f1bd"; 1453 | } 1454 | .fa-soundcloud:before { 1455 | content: "\f1be"; 1456 | } 1457 | .fa-database:before { 1458 | content: "\f1c0"; 1459 | } 1460 | .fa-file-pdf-o:before { 1461 | content: "\f1c1"; 1462 | } 1463 | .fa-file-word-o:before { 1464 | content: "\f1c2"; 1465 | } 1466 | .fa-file-excel-o:before { 1467 | content: "\f1c3"; 1468 | } 1469 | .fa-file-powerpoint-o:before { 1470 | content: "\f1c4"; 1471 | } 1472 | .fa-file-photo-o:before, 1473 | .fa-file-picture-o:before, 1474 | .fa-file-image-o:before { 1475 | content: "\f1c5"; 1476 | } 1477 | .fa-file-zip-o:before, 1478 | .fa-file-archive-o:before { 1479 | content: "\f1c6"; 1480 | } 1481 | .fa-file-sound-o:before, 1482 | .fa-file-audio-o:before { 1483 | content: "\f1c7"; 1484 | } 1485 | .fa-file-movie-o:before, 1486 | .fa-file-video-o:before { 1487 | content: "\f1c8"; 1488 | } 1489 | .fa-file-code-o:before { 1490 | content: "\f1c9"; 1491 | } 1492 | .fa-vine:before { 1493 | content: "\f1ca"; 1494 | } 1495 | .fa-codepen:before { 1496 | content: "\f1cb"; 1497 | } 1498 | .fa-jsfiddle:before { 1499 | content: "\f1cc"; 1500 | } 1501 | .fa-life-bouy:before, 1502 | .fa-life-buoy:before, 1503 | .fa-life-saver:before, 1504 | .fa-support:before, 1505 | .fa-life-ring:before { 1506 | content: "\f1cd"; 1507 | } 1508 | .fa-circle-o-notch:before { 1509 | content: "\f1ce"; 1510 | } 1511 | .fa-ra:before, 1512 | .fa-rebel:before { 1513 | content: "\f1d0"; 1514 | } 1515 | .fa-ge:before, 1516 | .fa-empire:before { 1517 | content: "\f1d1"; 1518 | } 1519 | .fa-git-square:before { 1520 | content: "\f1d2"; 1521 | } 1522 | .fa-git:before { 1523 | content: "\f1d3"; 1524 | } 1525 | .fa-y-combinator-square:before, 1526 | .fa-yc-square:before, 1527 | .fa-hacker-news:before { 1528 | content: "\f1d4"; 1529 | } 1530 | .fa-tencent-weibo:before { 1531 | content: "\f1d5"; 1532 | } 1533 | .fa-qq:before { 1534 | content: "\f1d6"; 1535 | } 1536 | .fa-wechat:before, 1537 | .fa-weixin:before { 1538 | content: "\f1d7"; 1539 | } 1540 | .fa-send:before, 1541 | .fa-paper-plane:before { 1542 | content: "\f1d8"; 1543 | } 1544 | .fa-send-o:before, 1545 | .fa-paper-plane-o:before { 1546 | content: "\f1d9"; 1547 | } 1548 | .fa-history:before { 1549 | content: "\f1da"; 1550 | } 1551 | .fa-circle-thin:before { 1552 | content: "\f1db"; 1553 | } 1554 | .fa-header:before { 1555 | content: "\f1dc"; 1556 | } 1557 | .fa-paragraph:before { 1558 | content: "\f1dd"; 1559 | } 1560 | .fa-sliders:before { 1561 | content: "\f1de"; 1562 | } 1563 | .fa-share-alt:before { 1564 | content: "\f1e0"; 1565 | } 1566 | .fa-share-alt-square:before { 1567 | content: "\f1e1"; 1568 | } 1569 | .fa-bomb:before { 1570 | content: "\f1e2"; 1571 | } 1572 | .fa-soccer-ball-o:before, 1573 | .fa-futbol-o:before { 1574 | content: "\f1e3"; 1575 | } 1576 | .fa-tty:before { 1577 | content: "\f1e4"; 1578 | } 1579 | .fa-binoculars:before { 1580 | content: "\f1e5"; 1581 | } 1582 | .fa-plug:before { 1583 | content: "\f1e6"; 1584 | } 1585 | .fa-slideshare:before { 1586 | content: "\f1e7"; 1587 | } 1588 | .fa-twitch:before { 1589 | content: "\f1e8"; 1590 | } 1591 | .fa-yelp:before { 1592 | content: "\f1e9"; 1593 | } 1594 | .fa-newspaper-o:before { 1595 | content: "\f1ea"; 1596 | } 1597 | .fa-wifi:before { 1598 | content: "\f1eb"; 1599 | } 1600 | .fa-calculator:before { 1601 | content: "\f1ec"; 1602 | } 1603 | .fa-paypal:before { 1604 | content: "\f1ed"; 1605 | } 1606 | .fa-google-wallet:before { 1607 | content: "\f1ee"; 1608 | } 1609 | .fa-cc-visa:before { 1610 | content: "\f1f0"; 1611 | } 1612 | .fa-cc-mastercard:before { 1613 | content: "\f1f1"; 1614 | } 1615 | .fa-cc-discover:before { 1616 | content: "\f1f2"; 1617 | } 1618 | .fa-cc-amex:before { 1619 | content: "\f1f3"; 1620 | } 1621 | .fa-cc-paypal:before { 1622 | content: "\f1f4"; 1623 | } 1624 | .fa-cc-stripe:before { 1625 | content: "\f1f5"; 1626 | } 1627 | .fa-bell-slash:before { 1628 | content: "\f1f6"; 1629 | } 1630 | .fa-bell-slash-o:before { 1631 | content: "\f1f7"; 1632 | } 1633 | .fa-trash:before { 1634 | content: "\f1f8"; 1635 | } 1636 | .fa-copyright:before { 1637 | content: "\f1f9"; 1638 | } 1639 | .fa-at:before { 1640 | content: "\f1fa"; 1641 | } 1642 | .fa-eyedropper:before { 1643 | content: "\f1fb"; 1644 | } 1645 | .fa-paint-brush:before { 1646 | content: "\f1fc"; 1647 | } 1648 | .fa-birthday-cake:before { 1649 | content: "\f1fd"; 1650 | } 1651 | .fa-area-chart:before { 1652 | content: "\f1fe"; 1653 | } 1654 | .fa-pie-chart:before { 1655 | content: "\f200"; 1656 | } 1657 | .fa-line-chart:before { 1658 | content: "\f201"; 1659 | } 1660 | .fa-lastfm:before { 1661 | content: "\f202"; 1662 | } 1663 | .fa-lastfm-square:before { 1664 | content: "\f203"; 1665 | } 1666 | .fa-toggle-off:before { 1667 | content: "\f204"; 1668 | } 1669 | .fa-toggle-on:before { 1670 | content: "\f205"; 1671 | } 1672 | .fa-bicycle:before { 1673 | content: "\f206"; 1674 | } 1675 | .fa-bus:before { 1676 | content: "\f207"; 1677 | } 1678 | .fa-ioxhost:before { 1679 | content: "\f208"; 1680 | } 1681 | .fa-angellist:before { 1682 | content: "\f209"; 1683 | } 1684 | .fa-cc:before { 1685 | content: "\f20a"; 1686 | } 1687 | .fa-shekel:before, 1688 | .fa-sheqel:before, 1689 | .fa-ils:before { 1690 | content: "\f20b"; 1691 | } 1692 | .fa-meanpath:before { 1693 | content: "\f20c"; 1694 | } 1695 | .fa-buysellads:before { 1696 | content: "\f20d"; 1697 | } 1698 | .fa-connectdevelop:before { 1699 | content: "\f20e"; 1700 | } 1701 | .fa-dashcube:before { 1702 | content: "\f210"; 1703 | } 1704 | .fa-forumbee:before { 1705 | content: "\f211"; 1706 | } 1707 | .fa-leanpub:before { 1708 | content: "\f212"; 1709 | } 1710 | .fa-sellsy:before { 1711 | content: "\f213"; 1712 | } 1713 | .fa-shirtsinbulk:before { 1714 | content: "\f214"; 1715 | } 1716 | .fa-simplybuilt:before { 1717 | content: "\f215"; 1718 | } 1719 | .fa-skyatlas:before { 1720 | content: "\f216"; 1721 | } 1722 | .fa-cart-plus:before { 1723 | content: "\f217"; 1724 | } 1725 | .fa-cart-arrow-down:before { 1726 | content: "\f218"; 1727 | } 1728 | .fa-diamond:before { 1729 | content: "\f219"; 1730 | } 1731 | .fa-ship:before { 1732 | content: "\f21a"; 1733 | } 1734 | .fa-user-secret:before { 1735 | content: "\f21b"; 1736 | } 1737 | .fa-motorcycle:before { 1738 | content: "\f21c"; 1739 | } 1740 | .fa-street-view:before { 1741 | content: "\f21d"; 1742 | } 1743 | .fa-heartbeat:before { 1744 | content: "\f21e"; 1745 | } 1746 | .fa-venus:before { 1747 | content: "\f221"; 1748 | } 1749 | .fa-mars:before { 1750 | content: "\f222"; 1751 | } 1752 | .fa-mercury:before { 1753 | content: "\f223"; 1754 | } 1755 | .fa-intersex:before, 1756 | .fa-transgender:before { 1757 | content: "\f224"; 1758 | } 1759 | .fa-transgender-alt:before { 1760 | content: "\f225"; 1761 | } 1762 | .fa-venus-double:before { 1763 | content: "\f226"; 1764 | } 1765 | .fa-mars-double:before { 1766 | content: "\f227"; 1767 | } 1768 | .fa-venus-mars:before { 1769 | content: "\f228"; 1770 | } 1771 | .fa-mars-stroke:before { 1772 | content: "\f229"; 1773 | } 1774 | .fa-mars-stroke-v:before { 1775 | content: "\f22a"; 1776 | } 1777 | .fa-mars-stroke-h:before { 1778 | content: "\f22b"; 1779 | } 1780 | .fa-neuter:before { 1781 | content: "\f22c"; 1782 | } 1783 | .fa-genderless:before { 1784 | content: "\f22d"; 1785 | } 1786 | .fa-facebook-official:before { 1787 | content: "\f230"; 1788 | } 1789 | .fa-pinterest-p:before { 1790 | content: "\f231"; 1791 | } 1792 | .fa-whatsapp:before { 1793 | content: "\f232"; 1794 | } 1795 | .fa-server:before { 1796 | content: "\f233"; 1797 | } 1798 | .fa-user-plus:before { 1799 | content: "\f234"; 1800 | } 1801 | .fa-user-times:before { 1802 | content: "\f235"; 1803 | } 1804 | .fa-hotel:before, 1805 | .fa-bed:before { 1806 | content: "\f236"; 1807 | } 1808 | .fa-viacoin:before { 1809 | content: "\f237"; 1810 | } 1811 | .fa-train:before { 1812 | content: "\f238"; 1813 | } 1814 | .fa-subway:before { 1815 | content: "\f239"; 1816 | } 1817 | .fa-medium:before { 1818 | content: "\f23a"; 1819 | } 1820 | .fa-yc:before, 1821 | .fa-y-combinator:before { 1822 | content: "\f23b"; 1823 | } 1824 | .fa-optin-monster:before { 1825 | content: "\f23c"; 1826 | } 1827 | .fa-opencart:before { 1828 | content: "\f23d"; 1829 | } 1830 | .fa-expeditedssl:before { 1831 | content: "\f23e"; 1832 | } 1833 | .fa-battery-4:before, 1834 | .fa-battery-full:before { 1835 | content: "\f240"; 1836 | } 1837 | .fa-battery-3:before, 1838 | .fa-battery-three-quarters:before { 1839 | content: "\f241"; 1840 | } 1841 | .fa-battery-2:before, 1842 | .fa-battery-half:before { 1843 | content: "\f242"; 1844 | } 1845 | .fa-battery-1:before, 1846 | .fa-battery-quarter:before { 1847 | content: "\f243"; 1848 | } 1849 | .fa-battery-0:before, 1850 | .fa-battery-empty:before { 1851 | content: "\f244"; 1852 | } 1853 | .fa-mouse-pointer:before { 1854 | content: "\f245"; 1855 | } 1856 | .fa-i-cursor:before { 1857 | content: "\f246"; 1858 | } 1859 | .fa-object-group:before { 1860 | content: "\f247"; 1861 | } 1862 | .fa-object-ungroup:before { 1863 | content: "\f248"; 1864 | } 1865 | .fa-sticky-note:before { 1866 | content: "\f249"; 1867 | } 1868 | .fa-sticky-note-o:before { 1869 | content: "\f24a"; 1870 | } 1871 | .fa-cc-jcb:before { 1872 | content: "\f24b"; 1873 | } 1874 | .fa-cc-diners-club:before { 1875 | content: "\f24c"; 1876 | } 1877 | .fa-clone:before { 1878 | content: "\f24d"; 1879 | } 1880 | .fa-balance-scale:before { 1881 | content: "\f24e"; 1882 | } 1883 | .fa-hourglass-o:before { 1884 | content: "\f250"; 1885 | } 1886 | .fa-hourglass-1:before, 1887 | .fa-hourglass-start:before { 1888 | content: "\f251"; 1889 | } 1890 | .fa-hourglass-2:before, 1891 | .fa-hourglass-half:before { 1892 | content: "\f252"; 1893 | } 1894 | .fa-hourglass-3:before, 1895 | .fa-hourglass-end:before { 1896 | content: "\f253"; 1897 | } 1898 | .fa-hourglass:before { 1899 | content: "\f254"; 1900 | } 1901 | .fa-hand-grab-o:before, 1902 | .fa-hand-rock-o:before { 1903 | content: "\f255"; 1904 | } 1905 | .fa-hand-stop-o:before, 1906 | .fa-hand-paper-o:before { 1907 | content: "\f256"; 1908 | } 1909 | .fa-hand-scissors-o:before { 1910 | content: "\f257"; 1911 | } 1912 | .fa-hand-lizard-o:before { 1913 | content: "\f258"; 1914 | } 1915 | .fa-hand-spock-o:before { 1916 | content: "\f259"; 1917 | } 1918 | .fa-hand-pointer-o:before { 1919 | content: "\f25a"; 1920 | } 1921 | .fa-hand-peace-o:before { 1922 | content: "\f25b"; 1923 | } 1924 | .fa-trademark:before { 1925 | content: "\f25c"; 1926 | } 1927 | .fa-registered:before { 1928 | content: "\f25d"; 1929 | } 1930 | .fa-creative-commons:before { 1931 | content: "\f25e"; 1932 | } 1933 | .fa-gg:before { 1934 | content: "\f260"; 1935 | } 1936 | .fa-gg-circle:before { 1937 | content: "\f261"; 1938 | } 1939 | .fa-tripadvisor:before { 1940 | content: "\f262"; 1941 | } 1942 | .fa-odnoklassniki:before { 1943 | content: "\f263"; 1944 | } 1945 | .fa-odnoklassniki-square:before { 1946 | content: "\f264"; 1947 | } 1948 | .fa-get-pocket:before { 1949 | content: "\f265"; 1950 | } 1951 | .fa-wikipedia-w:before { 1952 | content: "\f266"; 1953 | } 1954 | .fa-safari:before { 1955 | content: "\f267"; 1956 | } 1957 | .fa-chrome:before { 1958 | content: "\f268"; 1959 | } 1960 | .fa-firefox:before { 1961 | content: "\f269"; 1962 | } 1963 | .fa-opera:before { 1964 | content: "\f26a"; 1965 | } 1966 | .fa-internet-explorer:before { 1967 | content: "\f26b"; 1968 | } 1969 | .fa-tv:before, 1970 | .fa-television:before { 1971 | content: "\f26c"; 1972 | } 1973 | .fa-contao:before { 1974 | content: "\f26d"; 1975 | } 1976 | .fa-500px:before { 1977 | content: "\f26e"; 1978 | } 1979 | .fa-amazon:before { 1980 | content: "\f270"; 1981 | } 1982 | .fa-calendar-plus-o:before { 1983 | content: "\f271"; 1984 | } 1985 | .fa-calendar-minus-o:before { 1986 | content: "\f272"; 1987 | } 1988 | .fa-calendar-times-o:before { 1989 | content: "\f273"; 1990 | } 1991 | .fa-calendar-check-o:before { 1992 | content: "\f274"; 1993 | } 1994 | .fa-industry:before { 1995 | content: "\f275"; 1996 | } 1997 | .fa-map-pin:before { 1998 | content: "\f276"; 1999 | } 2000 | .fa-map-signs:before { 2001 | content: "\f277"; 2002 | } 2003 | .fa-map-o:before { 2004 | content: "\f278"; 2005 | } 2006 | .fa-map:before { 2007 | content: "\f279"; 2008 | } 2009 | .fa-commenting:before { 2010 | content: "\f27a"; 2011 | } 2012 | .fa-commenting-o:before { 2013 | content: "\f27b"; 2014 | } 2015 | .fa-houzz:before { 2016 | content: "\f27c"; 2017 | } 2018 | .fa-vimeo:before { 2019 | content: "\f27d"; 2020 | } 2021 | .fa-black-tie:before { 2022 | content: "\f27e"; 2023 | } 2024 | .fa-fonticons:before { 2025 | content: "\f280"; 2026 | } 2027 | .fa-reddit-alien:before { 2028 | content: "\f281"; 2029 | } 2030 | .fa-edge:before { 2031 | content: "\f282"; 2032 | } 2033 | .fa-credit-card-alt:before { 2034 | content: "\f283"; 2035 | } 2036 | .fa-codiepie:before { 2037 | content: "\f284"; 2038 | } 2039 | .fa-modx:before { 2040 | content: "\f285"; 2041 | } 2042 | .fa-fort-awesome:before { 2043 | content: "\f286"; 2044 | } 2045 | .fa-usb:before { 2046 | content: "\f287"; 2047 | } 2048 | .fa-product-hunt:before { 2049 | content: "\f288"; 2050 | } 2051 | .fa-mixcloud:before { 2052 | content: "\f289"; 2053 | } 2054 | .fa-scribd:before { 2055 | content: "\f28a"; 2056 | } 2057 | .fa-pause-circle:before { 2058 | content: "\f28b"; 2059 | } 2060 | .fa-pause-circle-o:before { 2061 | content: "\f28c"; 2062 | } 2063 | .fa-stop-circle:before { 2064 | content: "\f28d"; 2065 | } 2066 | .fa-stop-circle-o:before { 2067 | content: "\f28e"; 2068 | } 2069 | .fa-shopping-bag:before { 2070 | content: "\f290"; 2071 | } 2072 | .fa-shopping-basket:before { 2073 | content: "\f291"; 2074 | } 2075 | .fa-hashtag:before { 2076 | content: "\f292"; 2077 | } 2078 | .fa-bluetooth:before { 2079 | content: "\f293"; 2080 | } 2081 | .fa-bluetooth-b:before { 2082 | content: "\f294"; 2083 | } 2084 | .fa-percent:before { 2085 | content: "\f295"; 2086 | } 2087 | -------------------------------------------------------------------------------- /css/main.css: -------------------------------------------------------------------------------- 1 | body, 2 | html { 3 | background: #000; 4 | padding: 0px; 5 | margin: 0px; 6 | width: 100%; 7 | height: 100%; 8 | /*font-family: "HelveticaNeue-Light", sans-serif;*/ 9 | font-family: "MFYueHeiNoncommercial-Light", sans-serif; 10 | letter-spacing: -2px; 11 | color: #fff; 12 | font-size: 75px; 13 | -webkit-font-smoothing: antialiased; 14 | text-rendering: geometricprecision; 15 | } 16 | 17 | .wi { 18 | line-height: 75px; 19 | } 20 | 21 | .top { 22 | position: absolute; 23 | top: 50px; 24 | } 25 | 26 | .left { 27 | position: absolute; 28 | left: 50px; 29 | } 30 | 31 | .right { 32 | position: absolute; 33 | right: 50px; 34 | text-align: right; 35 | } 36 | 37 | .center-ver { 38 | position: absolute; 39 | top: 50%; 40 | height: 200px; 41 | margin-top: -100px; 42 | line-height: 100px; 43 | } 44 | 45 | .lower-third { 46 | position: absolute; 47 | top: 66.666%; 48 | height: 200px; 49 | margin-top: -100px; 50 | line-height: 100px; 51 | } 52 | 53 | .center-hor { 54 | position: absolute; 55 | right: 50px; 56 | left: 50px; 57 | text-align: center; 58 | } 59 | 60 | 61 | .center-ver-temp 62 | { 63 | position: absolute; 64 | top: 50%; 65 | height: 80px; 66 | /*margin-top: 420px;*/ 67 | } 68 | 69 | .bottom { 70 | position: absolute; 71 | bottom: 50px; 72 | } 73 | 74 | .xxsmall, 75 | .xsmall, 76 | .small { 77 | /*font-family: "HelveticaNeue-Medium", sans-serif;*/ 78 | font-family: "MFYueHeiNoncommercial-Light", sans-serif; 79 | letter-spacing: 0; 80 | } 81 | 82 | .xxsmall { 83 | font-size: 15px; 84 | } 85 | 86 | .xxsmall .wi { 87 | line-height: 15px; 88 | } 89 | 90 | .xsmall { 91 | font-size: 20px; 92 | } 93 | 94 | .xsmall .wi { 95 | line-height: 20px; 96 | } 97 | 98 | .small { 99 | font-size: 25px; 100 | } 101 | 102 | .small .wi { 103 | line-height: 25px; 104 | } 105 | 106 | .medium { 107 | font-size: 35px; 108 | letter-spacing: -1px; 109 | /*font-family: "HelveticaNeue-Light", sans-serif;*/ 110 | font-family: "MFYueHeiNoncommercial-Light", sans-serif; 111 | } 112 | 113 | .medium .wi { 114 | line-height: 35px; 115 | } 116 | 117 | .xdimmed { 118 | color: #666; 119 | } 120 | 121 | .dimmed { 122 | color: #aaa; 123 | } 124 | 125 | .light { 126 | /*font-family: "HelveticaNeue-UltraLight", sans-serif;*/ 127 | font-family: "MFYueHeiNoncommercial-ExLight", sans-serif; 128 | } 129 | 130 | .icon { 131 | position: relative; 132 | top: -10px; 133 | display: inline-block; 134 | font-size: 45px; 135 | padding-right: 5px; 136 | font-weight: 100; 137 | margin-right: 10px; 138 | } 139 | 140 | .icon-small { 141 | position: relative; 142 | display: inline-block; 143 | font-size: 20px; 144 | padding-left: 10px; 145 | padding-right: -10px; 146 | font-weight: 100; 147 | } 148 | 149 | .time .sec { 150 | font-size: 25px; 151 | color: #666; 152 | padding-left: 5px; 153 | position: relative; 154 | top: -35px; 155 | } 156 | 157 | .forecast-table { 158 | float: right; 159 | text-align: right; 160 | font-size: 20px; 161 | line-height: 20px; 162 | } 163 | 164 | .forecast-table .day, 165 | .forecast-table .temp-min, 166 | .forecast-table .temp-max { 167 | width: 50px; 168 | text-align: right; 169 | } 170 | 171 | .forecast-table .temp-max { 172 | width: 60px; 173 | } 174 | 175 | .forecast-table .day { 176 | color: #999; 177 | } 178 | 179 | .calendar-table { 180 | font-size: 14px; 181 | line-height: 20px; 182 | margin-top: 10px; 183 | } 184 | 185 | .calendar-table .calendar-icon { 186 | width: 1em; 187 | min-width: 1em; 188 | margin-right: 5px; 189 | text-align: center; 190 | } 191 | 192 | .calendar-table .days { 193 | padding-left: 20px; 194 | text-align: right; 195 | } 196 | 197 | .dishwasher { 198 | background-color: white; 199 | color: black; 200 | margin: 0 200px; 201 | font-size: 60px; 202 | border-radius: 1000px; 203 | border-radius: 1200px; 204 | display: none; 205 | } 206 | 207 | .th { 208 | display: inline-block; 209 | text-align: right; 210 | } 211 | 212 | @font-face { 213 | font-family: 'MFYueHeiNoncommercial-ExLight'; 214 | src: url('font/MFYueHeiNoncommercial-ExLight.eot'); /* IE9 Compat Modes */ 215 | src: url('font/MFYueHeiNoncommercial-ExLight.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ 216 | url('font/MFYueHeiNoncommercial-ExLight.woff') format('woff'), /* Modern Browsers */ 217 | url('font/MFYueHeiNoncommercial-ExLight.ttf') format('truetype'), /* Safari, Android, iOS */ 218 | url('font/MFYueHeiNoncommercial-ExLight.svg#MFYueHei_Noncommercial-ExLight') format('svg'); /* Legacy iOS */ 219 | font-style: normal; 220 | font-weight: normal; 221 | text-rendering: optimizeLegibility; 222 | } 223 | 224 | @font-face { 225 | font-family: 'MFYueHeiNoncommercial-UltLight'; 226 | src: url('font/MFYueHeiNoncommercial-UltLight.eot'); /* IE9 Compat Modes */ 227 | src: url('font/MFYueHeiNoncommercial-UltLight.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ 228 | url('font/MFYueHeiNoncommercial-UltLight.woff') format('woff'), /* Modern Browsers */ 229 | url('font/MFYueHeiNoncommercial-UltLight.ttf') format('truetype'), /* Safari, Android, iOS */ 230 | url('font/MFYueHeiNoncommercial-UltLight.svg#MFYueHei_Noncommercial-UltLight') format('svg'); /* Legacy iOS */ 231 | font-style: normal; 232 | font-weight: normal; 233 | text-rendering: optimizeLegibility; 234 | } 235 | 236 | @font-face { 237 | font-family: 'MFYueHeiNoncommercial-Light'; 238 | src: url('font/MFYueHeiNoncommercial-Light.eot'); /* IE9 Compat Modes */ 239 | src: url('font/MFYueHeiNoncommercial-Light.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ 240 | url('font/MFYueHeiNoncommercial-Light.woff') format('woff'), /* Modern Browsers */ 241 | url('font/MFYueHeiNoncommercial-Light.ttf') format('truetype'), /* Safari, Android, iOS */ 242 | url('font/MFYueHeiNoncommercial-Light.svg#MFYueHei_Noncommercial-Light') format('svg'); /* Legacy iOS */ 243 | font-style: normal; 244 | font-weight: normal; 245 | text-rendering: optimizeLegibility; 246 | } 247 | 248 | @font-face { 249 | font-family: 'HelveticaNeue-UltraLight'; 250 | src: url('font/HelveticaNeue-UltraLight.eot'); 251 | /* IE9 Compat Modes */ 252 | src: url('font/HelveticaNeue-UltraLight.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ 253 | url('font/HelveticaNeue-UltraLight.woff') format('woff'), /* Modern Browsers */ 254 | url('font/HelveticaNeue-UltraLight.ttf') format('truetype'), /* Safari, Android, iOS */ 255 | url('font/HelveticaNeue-UltraLight.svg#9453ea8da727d260bcdbfa605bdbb5d2') format('svg'); 256 | /* Legacy iOS */ 257 | font-style: normal; 258 | font-weight: 100; 259 | } 260 | 261 | @font-face { 262 | font-family: 'HelveticaNeue-Medium'; 263 | src: url('font/HelveticaNeue-Medium.eot'); 264 | /* IE9 Compat Modes */ 265 | src: url('font/HelveticaNeue-Medium.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ 266 | url('font/HelveticaNeue-Medium.woff') format('woff'), /* Modern Browsers */ 267 | url('font/HelveticaNeue-Medium.ttf') format('truetype'), /* Safari, Android, iOS */ 268 | url('font/HelveticaNeue-Medium.svg#d7af0fd9278f330eed98b60dddea7bd6') format('svg'); 269 | /* Legacy iOS */ 270 | font-style: normal; 271 | font-weight: 400; 272 | } 273 | 274 | @font-face { 275 | font-family: 'HelveticaNeue-Light'; 276 | src: url('font/HelveticaNeue-Light.eot'); 277 | /* IE9 Compat Modes */ 278 | src: url('font/HelveticaNeue-Light.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ 279 | url('font/HelveticaNeue-Light.woff') format('woff'), /* Modern Browsers */ 280 | url('font/HelveticaNeue-Light.ttf') format('truetype'), /* Safari, Android, iOS */ 281 | url('font/HelveticaNeue-Light.svg#7384ecabcada72f0e077cd45d8e1c705') format('svg'); 282 | /* Legacy iOS */ 283 | font-style: normal; 284 | font-weight: 200; 285 | } 286 | -------------------------------------------------------------------------------- /css/weather-icons.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Weather Icons Beta 1 3 | * Weather themed icons for Bootstrap 4 | * ------------------------------------------------------------------------------ 5 | * Maintained at http://erikflowers.github.io/weather-icons 6 | * http://twitter.com/Erik_UX 7 | * 8 | * License 9 | * ------------------------------------------------------------------------------ 10 | * - Fpmt licensed under SIL OFL 1.1 - 11 | * http://scripts.sil.org/OFL 12 | * - CSS and LESS are licensed under MIT License - 13 | * http://opensource.org/licenses/mit-license.html 14 | * - Documentation licensed under CC BY 3.0 - 15 | * http://creativecommons.org/licenses/by/3.0/ 16 | * - Inspired by and works great as a companion with Font Aweosme 17 | * "Font Awesome by Dave Gandy - http://fontawesome.io" 18 | * 19 | * Weather Icons Bootstrap Package Author - Erik Flowers - erik@helloerik.com 20 | * Weather Icons gives full credit for inspiration to Font Awesome and makes no 21 | * claim to invention, intellectual property, or ownership of methodology. 22 | * 23 | * Support Open Source! 24 | * 25 | * ------------------------------------------------------------------------------ 26 | * Email: erik@helloerik.com 27 | * Twitter: http://twitter.com/Erik_UX 28 | */ 29 | @font-face { 30 | font-family: 'weather'; 31 | src: url('../font/weathericons-regular-webfont.eot'); 32 | src: url('../font/weathericons-regular-webfont.eot?#iefix') format('embedded-opentype'), url('../font/weathericons-regular-webfont.woff') format('woff'), url('../font/weathericons-regular-webfont.ttf') format('truetype'), url('../font/weathericons-regular-webfont.svg#weathericons-regular-webfontRg') format('svg'); 33 | font-weight: normal; 34 | font-style: normal; 35 | } 36 | [class^="wi-"], 37 | [class*=" wi-"] { 38 | font-family: weather; 39 | font-weight: normal; 40 | font-style: normal; 41 | text-decoration: inherit; 42 | text-transform: none; 43 | -webkit-font-smoothing: antialiased; 44 | *margin-right: .3em; 45 | } 46 | [class^="wi-"]:before, 47 | [class*=" wi-"]:before { 48 | text-decoration: inherit; 49 | display: inline-block; 50 | speak: none; 51 | } 52 | .wi-day-cloudy-gusts:before { 53 | content: "\f000"; 54 | } 55 | .wi-day-cloudy-windy:before { 56 | content: "\f001"; 57 | } 58 | .wi-day-cloudy:before { 59 | content: "\f002"; 60 | } 61 | .wi-day-fog:before { 62 | content: "\f003"; 63 | } 64 | .wi-day-hail:before { 65 | content: "\f004"; 66 | } 67 | .wi-day-lightning:before { 68 | content: "\f005"; 69 | } 70 | .wi-day-rain-mix:before { 71 | content: "\f006"; 72 | } 73 | .wi-day-rain-wind:before { 74 | content: "\f007"; 75 | } 76 | .wi-day-rain:before { 77 | content: "\f008"; 78 | } 79 | .wi-day-showers:before { 80 | content: "\f009"; 81 | } 82 | .wi-day-snow:before { 83 | content: "\f00a"; 84 | } 85 | .wi-day-sprinkle:before { 86 | content: "\f00b"; 87 | } 88 | .wi-day-sunny-overcast:before { 89 | content: "\f00c"; 90 | } 91 | .wi-day-sunny:before { 92 | content: "\f00d"; 93 | } 94 | .wi-day-storm-showers:before { 95 | content: "\f00e"; 96 | } 97 | .wi-day-thunderstorm:before { 98 | content: "\f010"; 99 | } 100 | .wi-cloudy-gusts:before { 101 | content: "\f011"; 102 | } 103 | .wi-cloudy-windy:before { 104 | content: "\f012"; 105 | } 106 | .wi-cloudy:before { 107 | content: "\f013"; 108 | } 109 | .wi-fog:before { 110 | content: "\f014"; 111 | } 112 | .wi-hail:before { 113 | content: "\f015"; 114 | } 115 | .wi-lightning:before { 116 | content: "\f016"; 117 | } 118 | .wi-rain-mix:before { 119 | content: "\f017"; 120 | } 121 | .wi-rain-wind:before { 122 | content: "\f018"; 123 | } 124 | .wi-rain:before { 125 | content: "\f019"; 126 | } 127 | .wi-showers:before { 128 | content: "\f01a"; 129 | } 130 | .wi-snow:before { 131 | content: "\f01b"; 132 | } 133 | .wi-sprinkle:before { 134 | content: "\f01c"; 135 | } 136 | .wi-storm-showers:before { 137 | content: "\f01d"; 138 | } 139 | .wi-thunderstorm:before { 140 | content: "\f01e"; 141 | } 142 | .wi-windy:before { 143 | content: "\f021"; 144 | } 145 | .wi-night-alt-cloudy-gusts:before { 146 | content: "\f022"; 147 | } 148 | .wi-night-alt-cloudy-windy:before { 149 | content: "\f023"; 150 | } 151 | .wi-night-alt-hail:before { 152 | content: "\f024"; 153 | } 154 | .wi-night-alt-lightning:before { 155 | content: "\f025"; 156 | } 157 | .wi-night-alt-rain-mix:before { 158 | content: "\f026"; 159 | } 160 | .wi-night-alt-rain-wind:before { 161 | content: "\f027"; 162 | } 163 | .wi-night-alt-rain:before { 164 | content: "\f028"; 165 | } 166 | .wi-night-alt-showers:before { 167 | content: "\f029"; 168 | } 169 | .wi-night-alt-snow:before { 170 | content: "\f02a"; 171 | } 172 | .wi-night-alt-sprinkle:before { 173 | content: "\f02b"; 174 | } 175 | .wi-night-alt-storm-showers:before { 176 | content: "\f02c"; 177 | } 178 | .wi-night-alt-thunderstorm:before { 179 | content: "\f02d"; 180 | } 181 | .wi-night-clear:before { 182 | content: "\f02e"; 183 | } 184 | .wi-night-cloudy-gusts:before { 185 | content: "\f02f"; 186 | } 187 | .wi-night-cloudy-windy:before { 188 | content: "\f030"; 189 | } 190 | .wi-night-cloudy:before { 191 | content: "\f031"; 192 | } 193 | .wi-night-hail:before { 194 | content: "\f032"; 195 | } 196 | .wi-night-lightning:before { 197 | content: "\f033"; 198 | } 199 | .wi-night-rain-mix:before { 200 | content: "\f034"; 201 | } 202 | .wi-night-rain-wind:before { 203 | content: "\f035"; 204 | } 205 | .wi-night-rain:before { 206 | content: "\f036"; 207 | } 208 | .wi-night-showers:before { 209 | content: "\f037"; 210 | } 211 | .wi-night-snow:before { 212 | content: "\f038"; 213 | } 214 | .wi-night-sprinkle:before { 215 | content: "\f039"; 216 | } 217 | .wi-night-storm-showers:before { 218 | content: "\f03a"; 219 | } 220 | .wi-night-thunderstorm:before { 221 | content: "\f03b"; 222 | } 223 | .wi-celcius:before { 224 | content: "\f03c"; 225 | } 226 | .wi-cloud-down:before { 227 | content: "\f03d"; 228 | } 229 | .wi-cloud-refresh:before { 230 | content: "\f03e"; 231 | } 232 | .wi-cloud-up:before { 233 | content: "\f040"; 234 | } 235 | .wi-cloud:before { 236 | content: "\f041"; 237 | } 238 | .wi-degrees:before { 239 | content: "\f042"; 240 | } 241 | .wi-down-left:before { 242 | content: "\f043"; 243 | } 244 | .wi-down:before { 245 | content: "\f044"; 246 | } 247 | .wi-fahrenheit:before { 248 | content: "\f045"; 249 | } 250 | .wi-horizon-alt:before { 251 | content: "\f046"; 252 | } 253 | .wi-horizon:before { 254 | content: "\f047"; 255 | } 256 | .wi-left:before { 257 | content: "\f048"; 258 | } 259 | .wi-lightning:before { 260 | content: "\f016"; 261 | } 262 | .wi-night-fog:before { 263 | content: "\f04a"; 264 | } 265 | .wi-refresh-alt:before { 266 | content: "\f04b"; 267 | } 268 | .wi-refresh:before { 269 | content: "\f04c"; 270 | } 271 | .wi-right:before { 272 | content: "\f04d"; 273 | } 274 | .wi-sprinkles:before { 275 | content: "\f04e"; 276 | } 277 | .wi-strong-wind:before { 278 | content: "\f050"; 279 | } 280 | .wi-sunrise:before { 281 | content: "\f051"; 282 | } 283 | .wi-sunset:before { 284 | content: "\f052"; 285 | } 286 | .wi-thermometer-exterior:before { 287 | content: "\f053"; 288 | } 289 | .wi-thermometer-internal:before { 290 | content: "\f054"; 291 | } 292 | .wi-thermometer:before { 293 | content: "\f055"; 294 | } 295 | .wi-tornado:before { 296 | content: "\f056"; 297 | } 298 | .wi-up-right:before { 299 | content: "\f057"; 300 | } 301 | .wi-up:before { 302 | content: "\f058"; 303 | } 304 | .wi-wind-east:before { 305 | content: "\f059"; 306 | } 307 | .wi-wind-north-east:before { 308 | content: "\f05a"; 309 | } 310 | .wi-wind-north-west:before { 311 | content: "\f05b"; 312 | } 313 | .wi-wind-north:before { 314 | content: "\f05c"; 315 | } 316 | .wi-wind-south-east:before { 317 | content: "\f05d"; 318 | } 319 | .wi-wind-south-west:before { 320 | content: "\f05e"; 321 | } 322 | .wi-wind-south:before { 323 | content: "\f060"; 324 | } 325 | .wi-wind-west:before { 326 | content: "\f061"; 327 | } 328 | -------------------------------------------------------------------------------- /font/HelveticaNeue-Light.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/HelveticaNeue-Light.eot -------------------------------------------------------------------------------- /font/HelveticaNeue-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/HelveticaNeue-Light.ttf -------------------------------------------------------------------------------- /font/HelveticaNeue-Light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/HelveticaNeue-Light.woff -------------------------------------------------------------------------------- /font/HelveticaNeue-Medium.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/HelveticaNeue-Medium.eot -------------------------------------------------------------------------------- /font/HelveticaNeue-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/HelveticaNeue-Medium.ttf -------------------------------------------------------------------------------- /font/HelveticaNeue-Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/HelveticaNeue-Medium.woff -------------------------------------------------------------------------------- /font/HelveticaNeue-UltraLight.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/HelveticaNeue-UltraLight.eot -------------------------------------------------------------------------------- /font/HelveticaNeue-UltraLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/HelveticaNeue-UltraLight.ttf -------------------------------------------------------------------------------- /font/HelveticaNeue-UltraLight.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/HelveticaNeue-UltraLight.woff -------------------------------------------------------------------------------- /font/MFYueHeiNoncommercial-ExLight.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/MFYueHeiNoncommercial-ExLight.eot -------------------------------------------------------------------------------- /font/MFYueHeiNoncommercial-ExLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/MFYueHeiNoncommercial-ExLight.ttf -------------------------------------------------------------------------------- /font/MFYueHeiNoncommercial-ExLight.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/MFYueHeiNoncommercial-ExLight.woff -------------------------------------------------------------------------------- /font/MFYueHeiNoncommercial-Light.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/MFYueHeiNoncommercial-Light.eot -------------------------------------------------------------------------------- /font/MFYueHeiNoncommercial-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/MFYueHeiNoncommercial-Light.ttf -------------------------------------------------------------------------------- /font/MFYueHeiNoncommercial-Light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/MFYueHeiNoncommercial-Light.woff -------------------------------------------------------------------------------- /font/MFYueHeiNoncommercial-UltLight.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/MFYueHeiNoncommercial-UltLight.eot -------------------------------------------------------------------------------- /font/MFYueHeiNoncommercial-UltLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/MFYueHeiNoncommercial-UltLight.ttf -------------------------------------------------------------------------------- /font/MFYueHeiNoncommercial-UltLight.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/MFYueHeiNoncommercial-UltLight.woff -------------------------------------------------------------------------------- /font/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/fontawesome-webfont.eot -------------------------------------------------------------------------------- /font/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /font/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/fontawesome-webfont.woff -------------------------------------------------------------------------------- /font/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /font/weathericons-regular-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/weathericons-regular-webfont.eot -------------------------------------------------------------------------------- /font/weathericons-regular-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/weathericons-regular-webfont.ttf -------------------------------------------------------------------------------- /font/weathericons-regular-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HelloWk/MagicMirror/4d49b822981faf825f8ebfcb049a0458f4f63b63/font/weathericons-regular-webfont.woff -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Magic Mirror 4 | 7 | 8 | 9 | 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 | -------------------------------------------------------------------------------- /js/calendar/calendar.js: -------------------------------------------------------------------------------- 1 | var calendar = { 2 | eventList: [], 3 | calendarLocation: '.calendar', 4 | updateInterval: 1000, 5 | updateDataInterval: 60000, 6 | fadeInterval: 1000, 7 | intervalId: null, 8 | dataIntervalId: null, 9 | maximumEntries: config.calendar.maximumEntries || 10, 10 | calendarUrl: (typeof config.calendar.urls == 'undefined') ? config.calendar.url : config.calendar.urls[0].url, 11 | calendarPos: 0, 12 | defaultSymbol: config.calendar.defaultSymbol || 'none', 13 | calendarSymbol: (typeof config.calendar.urls == 'undefined') ? config.calendar.defaultSymbol || 'none' : config.calendar.urls[0].symbol, 14 | displaySymbol: (typeof config.calendar.displaySymbol == 'undefined') ? false : config.calendar.displaySymbol, 15 | shortRunningText: 'still', 16 | longRunningText: 'until', 17 | } 18 | 19 | calendar.processEvents = function (url, events) { 20 | tmpEventList = []; 21 | var eventListLength = this.eventList.length; 22 | for (var i = 0; i < eventListLength; i++) { 23 | if (this.eventList[i]['url'] != url) { 24 | tmpEventList.push(this.eventList[i]); 25 | } 26 | } 27 | this.eventList = tmpEventList; 28 | 29 | for (var i in events) { 30 | 31 | var e = events[i]; 32 | for (var key in e) { 33 | var value = e[key]; 34 | var seperator = key.search(';'); 35 | if (seperator >= 0) { 36 | var mainKey = key.substring(0,seperator); 37 | var subKey = key.substring(seperator+1); 38 | 39 | var dt; 40 | if (subKey == 'VALUE=DATE') { 41 | //date 42 | dt = new Date(value.substring(0,4), value.substring(4,6) - 1, value.substring(6,8)); 43 | } else { 44 | //time 45 | dt = new Date(value.substring(0,4), value.substring(4,6) - 1, value.substring(6,8), value.substring(9,11), value.substring(11,13), value.substring(13,15)); 46 | } 47 | 48 | if (mainKey == 'DTSTART') e.startDate = dt; 49 | if (mainKey == 'DTEND') e.endDate = dt; 50 | } 51 | } 52 | 53 | if (e.startDate == undefined){ 54 | //some old events in Gmail Calendar is "start_date" 55 | //FIXME: problems with Gmail's TimeZone 56 | var days = moment(e.DTSTART).diff(moment(), 'days'); 57 | var seconds = moment(e.DTSTART).diff(moment(), 'seconds'); 58 | var startDate = moment(e.DTSTART); 59 | var endDays = moment(e.DTEND).diff(moment(), 'days'); 60 | var endSeconds = moment(e.DTEND).diff(moment(), 'seconds'); 61 | var endDate = moment(e.DTEND); 62 | } else { 63 | var days = moment(e.startDate).diff(moment(), 'days'); 64 | var seconds = moment(e.startDate).diff(moment(), 'seconds'); 65 | var startDate = moment(e.startDate); 66 | var endDays = moment(e.endDate).diff(moment(), 'days'); 67 | var endSeconds = moment(e.endDate).diff(moment(), 'seconds'); 68 | var endDate = moment(e.endDate); 69 | } 70 | 71 | //only add fututre events, days doesn't work, we need to check seconds 72 | if (seconds >= 0) { 73 | if (seconds <= 60*60*5 || seconds >= 60*60*24*2) { 74 | var time_string = moment(startDate).fromNow(); 75 | }else { 76 | var time_string = moment(startDate).calendar() 77 | } 78 | if (!e.RRULE) { 79 | this.eventList.push({'description':e.SUMMARY,'seconds':seconds,'days':time_string,'url': url, symbol: this.calendarSymbol}); 80 | } 81 | e.seconds = seconds; 82 | } else if (endSeconds > 0) { 83 | // TODO: Replace with better lang handling 84 | if (endSeconds <= 60*60*5 || endSeconds >= 60*60*24*2) { 85 | var time_string = this.shortRunningText + ' ' + moment(endDate).fromNow(true); 86 | }else { 87 | var time_string = this.longRunningText + ' ' + moment(endDate).calendar() 88 | } 89 | if (!e.RRULE) { 90 | this.eventList.push({'description':e.SUMMARY,'seconds':seconds,'days':time_string,'url': url, symbol: this.calendarSymbol}); 91 | } 92 | e.seconds = endSeconds; 93 | } 94 | // Special handling for rrule events 95 | if (e.RRULE) { 96 | var options = new RRule.parseString(e.RRULE); 97 | options.dtstart = e.startDate; 98 | var rule = new RRule(options); 99 | 100 | var oneYear = new Date(); 101 | oneYear.setFullYear(oneYear.getFullYear() + 1); 102 | 103 | var dates = rule.between(new Date(), oneYear, true, function (date, i){return i < 10}); 104 | for (date in dates) { 105 | var dt = new Date(dates[date]); 106 | var days = moment(dt).diff(moment(), 'days'); 107 | var seconds = moment(dt).diff(moment(), 'seconds'); 108 | var startDate = moment(dt); 109 | if (seconds >= 0) { 110 | if (seconds <= 60*60*5 || seconds >= 60*60*24*2) { 111 | var time_string = moment(dt).fromNow(); 112 | } else { 113 | var time_string = moment(dt).calendar() 114 | } 115 | this.eventList.push({'description':e.SUMMARY,'seconds':seconds,'days':time_string,'url': url, symbol: this.calendarSymbol}); 116 | } 117 | } 118 | } 119 | }; 120 | 121 | this.eventList = this.eventList.sort(function(a,b){return a.seconds-b.seconds}); 122 | 123 | // Limit the number of entries. 124 | this.eventList = this.eventList.slice(0, calendar.maximumEntries); 125 | } 126 | 127 | calendar.updateData = function (callback) { 128 | new ical_parser("controllers/calendar.php" + "?url="+encodeURIComponent(this.calendarUrl), function(cal) { 129 | this.processEvents(this.calendarUrl, cal.getEvents()); 130 | 131 | this.calendarPos++; 132 | if ((typeof config.calendar.urls == 'undefined') || (this.calendarPos >= config.calendar.urls.length)) { 133 | this.calendarPos = 0; 134 | // Last Calendar in List is updated, run Callback (i.e. updateScreen) 135 | if (callback !== undefined && Object.prototype.toString.call(callback) === '[object Function]') { 136 | callback(this.eventList); 137 | } 138 | } else { 139 | // Loading all Calendars in parallel does not work, load them one by one. 140 | setTimeout(function () { 141 | this.updateData(this.updateCalendar.bind(this)); 142 | }.bind(this), 10); 143 | } 144 | if (typeof config.calendar.urls != 'undefined') { 145 | this.calendarUrl = config.calendar.urls[this.calendarPos].url; 146 | this.calendarSymbol = config.calendar.urls[this.calendarPos].symbol || this.defaultSymbol; 147 | } 148 | 149 | }.bind(this)); 150 | 151 | } 152 | 153 | calendar.updateCalendar = function (eventList) { 154 | var _is_new = true; 155 | if ($('.calendar-table').length) { 156 | _is_new = false; 157 | } 158 | table = $('').addClass('xsmall').addClass('calendar-table'); 159 | opacity = 1; 160 | 161 | for (var i in eventList) { 162 | var e = eventList[i]; 163 | var row = $('').attr('id', 'event'+i).css('opacity',opacity).addClass('event'); 164 | if (this.displaySymbol) { 165 | row.append($('
').addClass('fa').addClass('fa-'+e.symbol).addClass('calendar-icon')); 166 | } 167 | row.append($('').html(e.description).addClass('description')); 168 | row.append($('').html(e.days).addClass('days dimmed')); 169 | if (! _is_new && $('#event'+i).length) { 170 | $('#event'+i).updateWithText(row.children(), this.fadeInterval); 171 | } else { 172 | // Something wrong - replace whole table 173 | _is_new = true; 174 | } 175 | table.append(row); 176 | 177 | opacity -= 1 / eventList.length; 178 | } 179 | if (_is_new) { 180 | $(this.calendarLocation).updateWithText(table, this.fadeInterval); 181 | } 182 | 183 | } 184 | 185 | calendar.init = function () { 186 | 187 | this.updateData(this.updateCalendar.bind(this)); 188 | 189 | // this.intervalId = setInterval(function () { 190 | // this.updateCalendar(this.eventList) 191 | // }.bind(this), this.updateInterval); 192 | 193 | this.dataIntervalId = setInterval(function () { 194 | this.updateData(this.updateCalendar.bind(this)); 195 | }.bind(this), this.updateDataInterval); 196 | 197 | } 198 | -------------------------------------------------------------------------------- /js/compliments/compliments.js: -------------------------------------------------------------------------------- 1 | var compliments = { 2 | complimentLocation: '.compliment', 3 | currentCompliment: '', 4 | complimentList: { 5 | 'morning': config.compliments.morning, 6 | 'afternoon': config.compliments.afternoon, 7 | 'evening': config.compliments.evening 8 | }, 9 | updateInterval: config.compliments.interval || 30000, 10 | fadeInterval: config.compliments.fadeInterval || 4000, 11 | intervalId: null 12 | }; 13 | 14 | /** 15 | * Changes the compliment visible on the screen 16 | */ 17 | compliments.updateCompliment = function () { 18 | 19 | 20 | 21 | var _list = []; 22 | 23 | var hour = moment().hour(); 24 | 25 | // In the following if statement we use .slice() on the 26 | // compliments array to make a copy by value. 27 | // This way the original array of compliments stays intact. 28 | 29 | if (hour >= 3 && hour < 12) { 30 | // Morning compliments 31 | _list = compliments.complimentList['morning'].slice(); 32 | } else if (hour >= 12 && hour < 17) { 33 | // Afternoon compliments 34 | _list = compliments.complimentList['afternoon'].slice(); 35 | } else if (hour >= 17 || hour < 3) { 36 | // Evening compliments 37 | _list = compliments.complimentList['evening'].slice(); 38 | } else { 39 | // Edge case in case something weird happens 40 | // This will select a compliment from all times of day 41 | Object.keys(compliments.complimentList).forEach(function (_curr) { 42 | _list = _list.concat(compliments.complimentList[_curr]).slice(); 43 | }); 44 | } 45 | 46 | // Search for the location of the current compliment in the list 47 | var _spliceIndex = _list.indexOf(compliments.currentCompliment); 48 | 49 | // If it exists, remove it so we don't see it again 50 | if (_spliceIndex !== -1) { 51 | _list.splice(_spliceIndex, 1); 52 | } 53 | 54 | // Randomly select a location 55 | var _randomIndex = Math.floor(Math.random() * _list.length); 56 | compliments.currentCompliment = _list[_randomIndex]; 57 | 58 | $('.compliment').updateWithText(compliments.currentCompliment, compliments.fadeInterval); 59 | 60 | } 61 | 62 | compliments.init = function () { 63 | 64 | this.updateCompliment(); 65 | 66 | this.intervalId = setInterval(function () { 67 | this.updateCompliment(); 68 | }.bind(this), this.updateInterval) 69 | 70 | } 71 | -------------------------------------------------------------------------------- /js/config.js: -------------------------------------------------------------------------------- 1 | var config = { 2 | lang: 'zh_cn', 3 | time: { 4 | timeFormat: 12, 5 | displaySeconds: true, 6 | digitFade: false, 7 | }, 8 | weather: { 9 | //change weather params here: 10 | //units: metric or imperial 11 | interval: 120000, 12 | fadeInterval: 10000, 13 | params: { 14 | q: 'dalian', 15 | units: 'metric', 16 | // if you want a different lang for the weather that what is set above, change it here 17 | lang: 'zh_cn', 18 | APPID: '' 19 | } 20 | }, 21 | tem_hum: { 22 | mqttServer: 'mqtt.hellowk.cc', 23 | mqttServerPort: 9001, 24 | mqttclientName: "magic_mirror_tem_hum", 25 | temperatureTopic: 'homekit/himitsu/temperature', 26 | humidityTopic: 'homekit/himitsu/humidity', 27 | heatIndexTopic: 'homekit/himitsu/heatIndex' 28 | }, 29 | compliments: { 30 | interval: 30000, 31 | fadeInterval: 4000, 32 | morning: [ 33 | 'Good morning, handsome!', 34 | 'Enjoy your day!', 35 | 'How was your sleep?' 36 | ], 37 | afternoon: [ 38 | 'Hello, beauty!', 39 | 'You look sexy!', 40 | 'Looking good today!' 41 | ], 42 | evening: [ 43 | 'Wow, you look hot!', 44 | 'You look nice!', 45 | 'Hi, sexy!' 46 | ] 47 | }, 48 | calendar: { 49 | maximumEntries: 10, // Total Maximum Entries 50 | displaySymbol: true, 51 | defaultSymbol: 'calendar', // Fontawsome Symbol see http://fontawesome.io/cheatsheet/ 52 | urls: [ 53 | { 54 | symbol: 'calendar-plus-o', 55 | url: '' 56 | }, 57 | // { 58 | // symbol: 'soccer-ball-o', 59 | // url: 'https://www.google.com/calendar/ical/akvbisn5iha43idv0ktdalnor4%40group.calendar.google.com/public/basic.ics', 60 | // }, 61 | // { 62 | // symbol: 'mars', 63 | // url: "https://server/url/to/his.ics", 64 | // }, 65 | // { 66 | // symbol: 'venus', 67 | // url: "https://server/url/to/hers.ics", 68 | // }, 69 | // { 70 | // symbol: 'venus-mars', 71 | // url: "https://server/url/to/theirs.ics", 72 | // }, 73 | ] 74 | }, 75 | news: { 76 | feed: 'http://headlines.yahoo.co.jp/rss/zdn_ait-c_sci.xml' 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /js/ical_parser.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Javascript ical Parser 3 | * Proof of concept method of reading icalendar (.ics) files with javascript. 4 | * 5 | * @author: Carl Saggs 6 | * @source: https://github.com/thybag/ 7 | * @version: 0.2 8 | */ 9 | function ical_parser(feed_url, callback){ 10 | //store of unproccesed data. 11 | this.raw_data = null; 12 | //Store of proccessed data. 13 | this.events = []; 14 | 15 | /** 16 | * loadFile 17 | * Using AJAX to load the requested .ics file, passing it to the callback when completed. 18 | * @param url URL of .ics file 19 | * @param callback Function to call on completion. 20 | */ 21 | this.loadFile = function(url, callback){ 22 | //Create request object 23 | try {xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");} catch (e) { } 24 | //Grab file 25 | xmlhttp.onreadystatechange = function(){ 26 | if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) { 27 | //On success, run callback. 28 | callback(xmlhttp.responseText); 29 | } 30 | } 31 | xmlhttp.open("GET", url, true); 32 | xmlhttp.send(null); 33 | } 34 | 35 | /** 36 | * makeDate 37 | * Convert the dateformat used by ICalendar in to one more suitable for javascript. 38 | * @param String ical_date 39 | * @return dt object, includes javascript Date + day name, hour/minutes/day/month/year etc. 40 | */ 41 | this.makeDate = function(ical_date){ 42 | //break date apart 43 | var dtutc = { 44 | year: ical_date.substr(0,4), 45 | month: ical_date.substr(4,2), 46 | day: ical_date.substr(6,2), 47 | hour: ical_date.substr(9,2), 48 | minute: ical_date.substr(11,2) 49 | } 50 | //Create JS date (months start at 0 in JS - don't ask) 51 | var utcdatems = Date.UTC(dtutc.year, (dtutc.month-1), dtutc.day, dtutc.hour, dtutc.minute); 52 | var dt = {}; 53 | dt.date = new Date(utcdatems); 54 | 55 | dt.year = dt.date.getFullYear(); 56 | dt.month = ('0' + (dt.date.getMonth()+1)).slice(-2); 57 | dt.day = ('0' + dt.date.getDate()).slice(-2); 58 | dt.hour = ('0' + dt.date.getHours()).slice(-2); 59 | dt.minute = ('0' + dt.date.getMinutes()).slice(-2); 60 | 61 | //Get the full name of the given day 62 | dt.dayname =["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][dt.date.getDay()]; 63 | dt.monthname = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ][dt.date.getMonth()] ; 64 | 65 | return dt; 66 | } 67 | 68 | /** 69 | * parseICAL 70 | * Convert the ICAL format in to a number of javascript objects (Each representing a date) 71 | * 72 | * @param data Raw ICAL data 73 | */ 74 | this.parseICAL = function(data){ 75 | //Ensure cal is empty 76 | this.events = []; 77 | 78 | //Clean string and split the file so we can handle it (line by line) 79 | cal_array = data.replace(new RegExp( "\\r", "g" ), "").replace(/\n /g,"").split("\n"); 80 | 81 | //Keep track of when we are activly parsing an event 82 | var in_event = false; 83 | //Use as a holder for the current event being proccessed. 84 | var cur_event = null; 85 | for(var i=0;i') 141 | .replace(/\\n/g,'
') 142 | .replace(/\\,/g,','); 143 | } 144 | 145 | //Add the value to our event object. 146 | cur_event[type] = val; 147 | } 148 | } 149 | //Run this to finish proccessing our Events. 150 | this.complete(); 151 | } 152 | /** 153 | * complete 154 | * Sort all events in to a sensible order and run the original callback 155 | */ 156 | this.complete = function(){ 157 | //Sort the data so its in date order. 158 | this.events.sort(function(a,b){ 159 | return a.DTSTART-b.DTSTART; 160 | }); 161 | //Run callback method, if was defined. (return self) 162 | if(typeof callback == 'function') callback(this); 163 | } 164 | /** 165 | * getEvents 166 | * return all events found in the ical file. 167 | * 168 | * @return list of events objects 169 | */ 170 | this.getEvents = function(){ 171 | return this.events; 172 | } 173 | 174 | /** 175 | * getFutureEvents 176 | * return all events sheduled to take place after the current date. 177 | * 178 | * @return list of events objects 179 | */ 180 | this.getFutureEvents = function(){ 181 | var future_events = [], current_date = new Date(); 182 | 183 | this.events.forEach(function(itm){ 184 | //If the event ends after the current time, add it to the array to return. 185 | if(itm.DTEND > current_date) future_events.push(itm); 186 | }); 187 | return future_events; 188 | } 189 | 190 | /** 191 | * getPastEvents 192 | * return all events sheduled to take place before the current date. 193 | * 194 | * @return list of events objects 195 | */ 196 | this.getPastEvents = function(){ 197 | var past_events = [], current_date = new Date(); 198 | 199 | this.events.forEach(function(itm){ 200 | //If the event ended before the current time, add it to the array to return. 201 | if(itm.DTEND <= current_date) past_events.push(itm); 202 | }); 203 | return past_events.reverse(); 204 | } 205 | 206 | /** 207 | * load 208 | * load a new ICAL file. 209 | * 210 | * @param ical file url 211 | */ 212 | this.load = function(ical_file){ 213 | var tmp_this = this; 214 | this.raw_data = null; 215 | this.loadFile(ical_file, function(data){ 216 | //if the file loads, store the data and invoke the parser 217 | tmp_this.raw_data = data; 218 | tmp_this.parseICAL(data); 219 | }); 220 | } 221 | 222 | //Store this so we can use it in the callback from the load function. 223 | var tmp_this = this; 224 | //Store the feed url 225 | this.feed_url = feed_url; 226 | //Load the file 227 | this.load(this.feed_url); 228 | } 229 | -------------------------------------------------------------------------------- /js/jquery.feedToJSON.js: -------------------------------------------------------------------------------- 1 | //jQuery extension to fetch an rss feed and return it as json via YQL 2 | //created by dboz@airshp.com 3 | (function($) { 4 | 5 | $.extend({ 6 | feedToJson: function(options, callback) { 7 | if ($.isFunction(options)) { 8 | callback = options; 9 | options = null; 10 | } 11 | options = $.extend($.feedToJson.defaults,options); 12 | var url = options.yqlURL + options.yqlQS + "'" + encodeURIComponent(options.feed) + "'" + "&_nocache=" + options.cacheBuster; 13 | return $.getJSON(url, function(data){ 14 | //console.log(data.query.results); 15 | data = data.query.results; 16 | $.isFunction(callback) && callback(data); //allows the callback function to be the only option 17 | $.isFunction(options.success) && options.success(data); 18 | }); 19 | } 20 | }); 21 | 22 | //defaults 23 | $.feedToJson.defaults = { 24 | yqlURL : 'https://query.yahooapis.com/v1/public/yql', //yql 25 | yqlQS : '?format=json&callback=?&q=select%20*%20from%20rss%20where%20url%3D', //yql query string 26 | feed:'http://instagr.am/tags/tacos/feed/recent.rss', //instagram recent posts tagged 'tacos' 27 | cachebuster: Math.floor((new Date().getTime()) / 1200 / 1000), //yql caches feeds, so we change the feed url every 20min 28 | success:null //success callback 29 | }; 30 | 31 | })(jQuery); 32 | // eo feedToJson -------------------------------------------------------------------------------- /js/main.js: -------------------------------------------------------------------------------- 1 | jQuery.fn.updateWithText = function(text, speed) 2 | { 3 | var dummy = $('
').html(text); 4 | 5 | if ($(this).html() != dummy.html()) 6 | { 7 | $(this).fadeOut(speed/2, function() { 8 | $(this).html(text); 9 | $(this).fadeIn(speed/2, function() { 10 | //done 11 | }); 12 | }); 13 | } 14 | } 15 | 16 | jQuery.fn.outerHTML = function(s) { 17 | return s 18 | ? this.before(s).remove() 19 | : jQuery("

").append(this.eq(0).clone()).html(); 20 | }; 21 | 22 | function roundVal(temp) 23 | { 24 | return Math.round(temp * 10) / 10; 25 | } 26 | 27 | jQuery(document).ready(function($) { 28 | 29 | var eventList = []; 30 | 31 | var lastCompliment; 32 | var compliment; 33 | 34 | moment.locale(config.lang); 35 | 36 | //connect do Xbee monitor 37 | // var socket = io.connect('http://rpi-alarm.local:8082'); 38 | // socket.on('dishwasher', function (dishwasherReady) { 39 | // if (dishwasherReady) { 40 | // $('.dishwasher').fadeIn(2000); 41 | // $('.lower-third').fadeOut(2000); 42 | // } else { 43 | // $('.dishwasher').fadeOut(2000); 44 | // $('.lower-third').fadeIn(2000); 45 | // } 46 | // }); 47 | 48 | version.init(); 49 | 50 | time.init(); 51 | 52 | calendar.init(); 53 | 54 | compliments.init(); 55 | 56 | weather.init(); 57 | 58 | news.init(); 59 | 60 | //tem_hum.init(); 61 | 62 | }); 63 | -------------------------------------------------------------------------------- /js/news/news.js: -------------------------------------------------------------------------------- 1 | // A lot of this code is from the original feedToJson function that was included with this project 2 | // The new code allows for multiple feeds to be used but a bunch of variables and such have literally been copied and pasted into this code and some help from here: http://jsfiddle.net/BDK46/ 3 | // The original version can be found here: http://airshp.com/2011/jquery-plugin-feed-to-json/ 4 | var news = { 5 | feed: config.news.feed || null, 6 | newsLocation: '.news', 7 | newsItems: [], 8 | seenNewsItem: [], 9 | _yqURL: 'https://query.yahooapis.com/v1/public/yql', 10 | _yqlQS: '?format=json&q=select%20*%20from%20rss%20where%20url%3D', 11 | _cacheBuster: Math.floor((new Date().getTime()) / 1200 / 1000), 12 | _failedAttempts: 0, 13 | fetchInterval: config.news.fetchInterval || 60000, 14 | updateInterval: config.news.interval || 5500, 15 | fadeInterval: 2000, 16 | intervalId: null, 17 | fetchNewsIntervalId: null 18 | } 19 | 20 | /** 21 | * Creates the query string that will be used to grab a converted RSS feed into a JSON object via Yahoo 22 | * @param {string} feed The original location of the RSS feed 23 | * @return {string} The new location of the RSS feed provided by Yahoo 24 | */ 25 | news.buildQueryString = function (feed) { 26 | 27 | return this._yqURL + this._yqlQS + '\'' + encodeURIComponent(feed) + '\''; 28 | 29 | } 30 | 31 | /** 32 | * Fetches the news for each feed provided in the config file 33 | */ 34 | news.fetchNews = function () { 35 | 36 | // Reset the news feed 37 | this.newsItems = []; 38 | 39 | this.feed.forEach(function (_curr) { 40 | 41 | var _yqUrlString = this.buildQueryString(_curr); 42 | this.fetchFeed(_yqUrlString); 43 | 44 | }.bind(this)); 45 | 46 | } 47 | 48 | /** 49 | * Runs a GET request to Yahoo's service 50 | * @param {string} yqUrl The URL being used to grab the RSS feed (in JSON format) 51 | */ 52 | news.fetchFeed = function (yqUrl) { 53 | 54 | $.ajax({ 55 | type: 'GET', 56 | datatype:'jsonp', 57 | url: yqUrl, 58 | success: function (data) { 59 | 60 | if (data.query.count > 0) { 61 | this.parseFeed(data.query.results.item); 62 | } else { 63 | console.error('No feed results for: ' + yqUrl); 64 | } 65 | 66 | }.bind(this), 67 | error: function () { 68 | // non-specific error message that should be updated 69 | console.error('No feed results for: ' + yqUrl); 70 | } 71 | }); 72 | 73 | } 74 | 75 | /** 76 | * Parses each item in a single news feed 77 | * @param {Object} data The news feed that was returned by Yahoo 78 | * @return {boolean} Confirms that the feed was parsed correctly 79 | */ 80 | news.parseFeed = function (data) { 81 | 82 | var _rssItems = []; 83 | 84 | for (var i = 0, count = data.length; i < count; i++) { 85 | 86 | _rssItems.push(data[i].title); 87 | 88 | } 89 | 90 | this.newsItems = this.newsItems.concat(_rssItems); 91 | 92 | return true; 93 | 94 | } 95 | 96 | /** 97 | * Loops through each available and unseen news feed after it has been retrieved from Yahoo and shows it on the screen 98 | * When all news titles have been exhausted, the list resets and randomly chooses from the original set of items 99 | * @return {boolean} Confirms that there is a list of news items to loop through and that one has been shown on the screen 100 | */ 101 | news.showNews = function () { 102 | 103 | // If all items have been seen, swap seen to unseen 104 | if (this.newsItems.length === 0 && this.seenNewsItem.length !== 0) { 105 | 106 | if (this._failedAttempts === 20) { 107 | console.error('Failed to show a news story 20 times, stopping any attempts'); 108 | return false; 109 | } 110 | 111 | this._failedAttempts++; 112 | 113 | setTimeout(function () { 114 | this.showNews(); 115 | }.bind(this), 3000); 116 | 117 | } else if (this.newsItems.length === 0 && this.seenNewsItem.length !== 0) { 118 | this.newsItems = this.seenNewsItem.splice(0); 119 | } 120 | 121 | var _location = Math.floor(Math.random() * this.newsItems.length); 122 | 123 | var _item = news.newsItems.splice(_location, 1)[0]; 124 | 125 | this.seenNewsItem.push(_item); 126 | 127 | $(this.newsLocation).updateWithText(_item, this.fadeInterval); 128 | 129 | return true; 130 | 131 | } 132 | 133 | news.init = function () { 134 | 135 | if (this.feed === null || (this.feed instanceof Array === false && typeof this.feed !== 'string')) { 136 | return false; 137 | } else if (typeof this.feed === 'string') { 138 | this.feed = [this.feed]; 139 | } 140 | 141 | this.fetchNews(); 142 | this.showNews(); 143 | 144 | this.fetchNewsIntervalId = setInterval(function () { 145 | this.fetchNews() 146 | }.bind(this), this.fetchInterval) 147 | 148 | this.intervalId = setInterval(function () { 149 | this.showNews(); 150 | }.bind(this), this.updateInterval); 151 | 152 | } -------------------------------------------------------------------------------- /js/paho/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Contributing to Paho 2 | ==================== 3 | 4 | Thanks for your interest in this project. 5 | 6 | Project description: 7 | -------------------- 8 | 9 | The Paho project has been created to provide scalable open-source implementations of open and standard messaging protocols aimed at new, existing, and emerging applications for Machine-to-Machine (M2M) and Internet of Things (IoT). 10 | Paho reflects the inherent physical and cost constraints of device connectivity. Its objectives include effective levels of decoupling between devices and applications, designed to keep markets open and encourage the rapid growth of scalable Web and Enterprise middleware and applications. Paho is being kicked off with MQTT publish/subscribe client implementations for use on embedded platforms, along with corresponding server support as determined by the community. 11 | 12 | - https://projects.eclipse.org/projects/technology.paho 13 | 14 | Developer resources: 15 | -------------------- 16 | 17 | Information regarding source code management, builds, coding standards, and more. 18 | 19 | - https://projects.eclipse.org/projects/technology.paho/developer 20 | 21 | Contributor License Agreement: 22 | ------------------------------ 23 | 24 | Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA). 25 | 26 | - http://www.eclipse.org/legal/CLA.php 27 | 28 | Contact: 29 | -------- 30 | 31 | Contact the project developers via the project's "dev" list. 32 | 33 | - https://dev.eclipse.org/mailman/listinfo/paho-dev 34 | 35 | Search for bugs: 36 | ---------------- 37 | 38 | This project uses Bugzilla to track ongoing development and issues. 39 | 40 | - https://bugs.eclipse.org/bugs/buglist.cgi?product=Paho 41 | 42 | Create a new bug: 43 | ----------------- 44 | 45 | Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome! 46 | 47 | - https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Paho 48 | -------------------------------------------------------------------------------- /js/paho/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | About 5 | 6 | 7 |

About This Content

8 | 9 |

December 9, 2013

10 |

License

11 | 12 |

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise 13 | indicated below, the Content is provided to you under the terms and conditions of the 14 | Eclipse Public License Version 1.0 ("EPL") and Eclipse Distribution License Version 1.0 ("EDL"). 15 | A copy of the EPL is available at 16 | http://www.eclipse.org/legal/epl-v10.html 17 | and a copy of the EDL is available at 18 | http://www.eclipse.org/org/documents/edl-v10.php. 19 | For purposes of the EPL, "Program" will mean the Content.

20 | 21 |

If you did not receive this Content directly from the Eclipse Foundation, the Content is 22 | being redistributed by another party ("Redistributor") and different terms and conditions may 23 | apply to your use of any object code in the Content. Check the Redistributor's license that was 24 | provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise 25 | indicated below, the terms and conditions of the EPL still apply to any source code in the Content 26 | and such source code may be obtained at http://www.eclipse.org.

27 | 28 | 29 | -------------------------------------------------------------------------------- /js/paho/edl-v10: -------------------------------------------------------------------------------- 1 | 2 | Eclipse Distribution License - v 1.0 3 | 4 | Copyright (c) 2007, Eclipse Foundation, Inc. and its licensors. 5 | 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 9 | 10 | Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 11 | Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 12 | Neither the name of the Eclipse Foundation, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 13 | 14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 15 | 16 | -------------------------------------------------------------------------------- /js/paho/epl-v10: -------------------------------------------------------------------------------- 1 | Eclipse Public License - v 1.0 2 | 3 | THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. 4 | 5 | 1. DEFINITIONS 6 | 7 | "Contribution" means: 8 | 9 | a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and 10 | b) in the case of each subsequent Contributor: 11 | i) changes to the Program, and 12 | ii) additions to the Program; 13 | where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program. 14 | "Contributor" means any person or entity that distributes the Program. 15 | 16 | "Licensed Patents" mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. 17 | 18 | "Program" means the Contributions distributed in accordance with this Agreement. 19 | 20 | "Recipient" means anyone who receives the Program under this Agreement, including all Contributors. 21 | 22 | 2. GRANT OF RIGHTS 23 | 24 | a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form. 25 | b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder. 26 | c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program. 27 | d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. 28 | 3. REQUIREMENTS 29 | 30 | A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that: 31 | 32 | a) it complies with the terms and conditions of this Agreement; and 33 | b) its license agreement: 34 | i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; 35 | ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; 36 | iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and 37 | iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange. 38 | When the Program is made available in source code form: 39 | 40 | a) it must be made available under this Agreement; and 41 | b) a copy of this Agreement must be included with each copy of the Program. 42 | Contributors may not remove or alter any copyright notices contained within the Program. 43 | 44 | Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution. 45 | 46 | 4. COMMERCIAL DISTRIBUTION 47 | 48 | Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. 49 | 50 | For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages. 51 | 52 | 5. NO WARRANTY 53 | 54 | EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations. 55 | 56 | 6. DISCLAIMER OF LIABILITY 57 | 58 | EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 59 | 60 | 7. GENERAL 61 | 62 | If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. 63 | 64 | If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. 65 | 66 | All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. 67 | 68 | Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. 69 | 70 | This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation. 71 | -------------------------------------------------------------------------------- /js/paho/mqttws31-min.js: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2013, 2014 IBM Corp. 3 | * 4 | * All rights reserved. This program and the accompanying materials 5 | * are made available under the terms of the Eclipse Public License v1.0 6 | * and Eclipse Distribution License v1.0 which accompany this distribution. 7 | * 8 | * The Eclipse Public License is available at 9 | * http://www.eclipse.org/legal/epl-v10.html 10 | * and the Eclipse Distribution License is available at 11 | * http://www.eclipse.org/org/documents/edl-v10.php. 12 | * 13 | *******************************************************************************/ 14 | 15 | "undefined"===typeof Paho&&(Paho={}); 16 | Paho.MQTT=function(u){function y(a,b,c){b[c++]=a>>8;b[c++]=a%256;return c}function r(a,b,c,h){h=y(b,c,h);F(a,c,h);return h+b}function m(a){for(var b=0,c=0;c=h&&(c++,b++),b+=3):127=e){var d=a.charCodeAt(++h);if(isNaN(d))throw Error(f(g.MALFORMED_UNICODE,[e,d]));e=(e-55296<<10)+(d-56320)+65536}127>=e?b[c++]=e:(2047>=e?b[c++]=e>>6&31| 17 | 192:(65535>=e?b[c++]=e>>12&15|224:(b[c++]=e>>18&7|240,b[c++]=e>>12&63|128),b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b}function G(a,b,c){for(var h="",e,d=b;de)){var p=a[d++]-128;if(0>p)throw Error(f(g.MALFORMED_UTF,[e.toString(16),p.toString(16),""]));if(224>e)e=64*(e-192)+p;else{var t=a[d++]-128;if(0>t)throw Error(f(g.MALFORMED_UTF,[e.toString(16),p.toString(16),t.toString(16)]));if(240>e)e=4096*(e-224)+64*p+t;else{var l=a[d++]-128;if(0>l)throw Error(f(g.MALFORMED_UTF, 18 | [e.toString(16),p.toString(16),t.toString(16),l.toString(16)]));if(248>e)e=262144*(e-240)+4096*p+64*t+l;else throw Error(f(g.MALFORMED_UTF,[e.toString(16),p.toString(16),t.toString(16),l.toString(16)]));}}}65535>10)),e=56320+(e&1023));h+=String.fromCharCode(e)}return h}var A=function(a,b){for(var c in a)if(a.hasOwnProperty(c))if(b.hasOwnProperty(c)){if(typeof a[c]!==b[c])throw Error(f(g.INVALID_TYPE,[typeof a[c],c]));}else{var h="Unknown property, "+c+ 19 | ". Valid properties are:";for(c in b)b.hasOwnProperty(c)&&(h=h+" "+c);throw Error(h);}},q=function(a,b){return function(){return a.apply(b,arguments)}},g={OK:{code:0,text:"AMQJSC0000I OK."},CONNECT_TIMEOUT:{code:1,text:"AMQJSC0001E Connect timed out."},SUBSCRIBE_TIMEOUT:{code:2,text:"AMQJS0002E Subscribe timed out."},UNSUBSCRIBE_TIMEOUT:{code:3,text:"AMQJS0003E Unsubscribe timed out."},PING_TIMEOUT:{code:4,text:"AMQJS0004E Ping timed out."},INTERNAL_ERROR:{code:5,text:"AMQJS0005E Internal error. Error Message: {0}, Stack trace: {1}"}, 20 | CONNACK_RETURNCODE:{code:6,text:"AMQJS0006E Bad Connack return code:{0} {1}."},SOCKET_ERROR:{code:7,text:"AMQJS0007E Socket error:{0}."},SOCKET_CLOSE:{code:8,text:"AMQJS0008I Socket closed."},MALFORMED_UTF:{code:9,text:"AMQJS0009E Malformed UTF data:{0} {1} {2}."},UNSUPPORTED:{code:10,text:"AMQJS0010E {0} is not supported by this browser."},INVALID_STATE:{code:11,text:"AMQJS0011E Invalid state {0}."},INVALID_TYPE:{code:12,text:"AMQJS0012E Invalid type {0} for {1}."},INVALID_ARGUMENT:{code:13,text:"AMQJS0013E Invalid argument {0} for {1}."}, 21 | UNSUPPORTED_OPERATION:{code:14,text:"AMQJS0014E Unsupported operation."},INVALID_STORED_DATA:{code:15,text:"AMQJS0015E Invalid data in local storage key={0} value={1}."},INVALID_MQTT_MESSAGE_TYPE:{code:16,text:"AMQJS0016E Invalid MQTT message type {0}."},MALFORMED_UNICODE:{code:17,text:"AMQJS0017E Malformed Unicode string:{0} {1}."}},J={0:"Connection Accepted",1:"Connection Refused: unacceptable protocol version",2:"Connection Refused: identifier rejected",3:"Connection Refused: server unavailable", 22 | 4:"Connection Refused: bad user name or password",5:"Connection Refused: not authorized"},f=function(a,b){var c=a.text;if(b)for(var h,e,d=0;d>7;0l);f=d.length+1;b=new ArrayBuffer(b+f);l=new Uint8Array(b); 25 | l[0]=a;l.set(d,1);if(3==this.type)f=r(this.payloadMessage.destinationName,h,l,f);else if(1==this.type){switch(this.mqttVersion){case 3:l.set(B,f);f+=B.length;break;case 4:l.set(C,f),f+=C.length}a=0;this.cleanSession&&(a=2);void 0!=this.willMessage&&(a=a|4|this.willMessage.qos<<3,this.willMessage.retained&&(a|=32));void 0!=this.userName&&(a|=128);void 0!=this.password&&(a|=64);l[f++]=a;f=y(this.keepAliveInterval,l,f)}void 0!=this.messageIdentifier&&(f=y(this.messageIdentifier,l,f));switch(this.type){case 1:f= 26 | r(this.clientId,m(this.clientId),l,f);void 0!=this.willMessage&&(f=r(this.willMessage.destinationName,m(this.willMessage.destinationName),l,f),f=y(e.byteLength,l,f),l.set(e,f),f+=e.byteLength);void 0!=this.userName&&(f=r(this.userName,m(this.userName),l,f));void 0!=this.password&&r(this.password,m(this.password),l,f);break;case 3:l.set(g,f);break;case 8:for(d=0;dthis.connectOptions.mqttVersion?new WebSocket(a,["mqttv3.1"]):new WebSocket(a,["mqtt"]);this.socket.binaryType= 37 | "arraybuffer";this.socket.onopen=q(this._on_socket_open,this);this.socket.onmessage=q(this._on_socket_message,this);this.socket.onerror=q(this._on_socket_error,this);this.socket.onclose=q(this._on_socket_close,this);this.sendPinger=new H(this,window,this.connectOptions.keepAliveInterval);this.receivePinger=new H(this,window,this.connectOptions.keepAliveInterval);this._connectTimeout=new D(this,window,this.connectOptions.timeout,this._disconnected,[g.CONNECT_TIMEOUT.code,f(g.CONNECT_TIMEOUT)])};k.prototype._schedule_message= 38 | function(a){this._msg_queue.push(a);this.connected&&this._process_queue()};k.prototype.store=function(a,b){var c={type:b.type,messageIdentifier:b.messageIdentifier,version:1};switch(b.type){case 3:b.pubRecReceived&&(c.pubRecReceived=!0);c.payloadMessage={};for(var h="",e=b.payloadMessage.payloadBytes,d=0;d=e[d]?h+"0"+e[d].toString(16):h+e[d].toString(16);c.payloadMessage.payloadHex=h;c.payloadMessage.qos=b.payloadMessage.qos;c.payloadMessage.destinationName=b.payloadMessage.destinationName; 39 | b.payloadMessage.duplicate&&(c.payloadMessage.duplicate=!0);b.payloadMessage.retained&&(c.payloadMessage.retained=!0);0==a.indexOf("Sent:")&&(void 0===b.sequence&&(b.sequence=++this._sequence),c.sequence=b.sequence);break;default:throw Error(f(g.INVALID_STORED_DATA,[key,c]));}localStorage.setItem(a+this._localKey+b.messageIdentifier,JSON.stringify(c))};k.prototype.restore=function(a){var b=localStorage.getItem(a),c=JSON.parse(b),h=new n(c.type,c);switch(c.type){case 3:for(var b=c.payloadMessage.payloadHex, 40 | e=new ArrayBuffer(b.length/2),e=new Uint8Array(e),d=0;2<=b.length;){var k=parseInt(b.substring(0,2),16),b=b.substring(2,b.length);e[d++]=k}b=new Paho.MQTT.Message(e);b.qos=c.payloadMessage.qos;b.destinationName=c.payloadMessage.destinationName;c.payloadMessage.duplicate&&(b.duplicate=!0);c.payloadMessage.retained&&(b.retained=!0);h.payloadMessage=b;break;default:throw Error(f(g.INVALID_STORED_DATA,[a,b]));}0==a.indexOf("Sent:"+this._localKey)?(h.payloadMessage.duplicate=!0,this._sentMessages[h.messageIdentifier]= 41 | h):0==a.indexOf("Received:"+this._localKey)&&(this._receivedMessages[h.messageIdentifier]=h)};k.prototype._process_queue=function(){for(var a=null,b=this._msg_queue.reverse();a=b.pop();)this._socket_send(a),this._notify_msg_sent[a]&&(this._notify_msg_sent[a](),delete this._notify_msg_sent[a])};k.prototype._requires_ack=function(a){var b=Object.keys(this._sentMessages).length;if(b>this.maxMessageIdentifier)throw Error("Too many messages:"+b);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++; 42 | a.messageIdentifier=this._message_identifier;this._sentMessages[a.messageIdentifier]=a;3===a.type&&this.store("Sent:",a);this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)};k.prototype._on_socket_open=function(){var a=new n(1,this.connectOptions);a.clientId=this.clientId;this._socket_send(a)};k.prototype._on_socket_message=function(a){this._trace("Client._on_socket_message",a.data);this.receivePinger.reset();a=this._deframeMessages(a.data);for(var b=0;b>4,z=t&15,d=d+1,v=void 0,E=0,m=1;do{if(d==e.length){h=[null,k];break a}v=e[d++];E+=(v&127)*m;m*=128}while(0!=(v&128));v=d+E;if(v>e.length)h=[null,k];else{var w=new n(l);switch(l){case 2:e[d++]& 44 | 1&&(w.sessionPresent=!0);w.returnCode=e[d++];break;case 3:var k=z>>1&3,r=256*e[d]+e[d+1],d=d+2,u=G(e,d,r),d=d+r;0b)throw Error(f(g.INVALID_TYPE,[typeof b,"port"]));if("string"!==typeof c)throw Error(f(g.INVALID_TYPE,[typeof c,"path"]));e="ws://"+(-1!=a.indexOf(":")&&"["!=a.slice(0,1)&&"]"!=a.slice(-1)?"["+a+"]":a)+":"+b+c}for(var p=d=0;p=m&&p++;d++}if("string"!==typeof h||65535a.mqttVersion)throw Error(f(g.INVALID_ARGUMENT,[a.mqttVersion,"connectOptions.mqttVersion"]));void 0===a.mqttVersion?(a.mqttVersionExplicit=!1,a.mqttVersion=4):a.mqttVersionExplicit=!0;if(void 0===a.password&&void 0!==a.userName)throw Error(f(g.INVALID_ARGUMENT, 62 | [a.password,"connectOptions.password"]));if(a.willMessage){if(!(a.willMessage instanceof x))throw Error(f(g.INVALID_TYPE,[a.willMessage,"connectOptions.willMessage"]));a.willMessage.stringPayload;if("undefined"===typeof a.willMessage.destinationName)throw Error(f(g.INVALID_TYPE,[typeof a.willMessage.destinationName,"connectOptions.willMessage.destinationName"]));}"undefined"===typeof a.cleanSession&&(a.cleanSession=!0);if(a.hosts){if(!(a.hosts instanceof Array))throw Error(f(g.INVALID_ARGUMENT,[a.hosts, 63 | "connectOptions.hosts"]));if(1>a.hosts.length)throw Error(f(g.INVALID_ARGUMENT,[a.hosts,"connectOptions.hosts"]));for(var b=!1,d=0;da.ports[d])throw Error(f(g.INVALID_TYPE,[typeof a.ports[d],"connectOptions.ports["+d+"]"]));var b=a.hosts[d],h= 65 | a.ports[d];e="ws://"+(-1!=b.indexOf(":")?"["+b+"]":b)+":"+h+c;a.uris.push(e)}}}l.connect(a)};this.subscribe=function(a,b){if("string"!==typeof a)throw Error("Invalid argument:"+a);b=b||{};A(b,{qos:"number",invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"});if(b.timeout&&!b.onFailure)throw Error("subscribeOptions.timeout specified with no onFailure callback.");if("undefined"!==typeof b.qos&&0!==b.qos&&1!==b.qos&&2!==b.qos)throw Error(f(g.INVALID_ARGUMENT,[b.qos, 66 | "subscribeOptions.qos"]));l.subscribe(a,b)};this.unsubscribe=function(a,b){if("string"!==typeof a)throw Error("Invalid argument:"+a);b=b||{};A(b,{invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"});if(b.timeout&&!b.onFailure)throw Error("unsubscribeOptions.timeout specified with no onFailure callback.");l.unsubscribe(a,b)};this.send=function(a,b,c,d){var e;if(0==arguments.length)throw Error("Invalid argument.length");if(1==arguments.length){if(!(a instanceof x)&& 67 | "string"!==typeof a)throw Error("Invalid argument:"+typeof a);e=a;if("undefined"===typeof e.destinationName)throw Error(f(g.INVALID_ARGUMENT,[e.destinationName,"Message.destinationName"]));}else e=new x(b),e.destinationName=a,3<=arguments.length&&(e.qos=c),4<=arguments.length&&(e.retained=d);l.send(e)};this.disconnect=function(){l.disconnect()};this.getTraceLog=function(){return l.getTraceLog()};this.startTrace=function(){l.startTrace()};this.stopTrace=function(){l.stopTrace()};this.isConnected=function(){return l.connected}}; 68 | I.prototype={get host(){return this._getHost()},set host(a){this._setHost(a)},get port(){return this._getPort()},set port(a){this._setPort(a)},get path(){return this._getPath()},set path(a){this._setPath(a)},get clientId(){return this._getClientId()},set clientId(a){this._setClientId(a)},get onConnectionLost(){return this._getOnConnectionLost()},set onConnectionLost(a){this._setOnConnectionLost(a)},get onMessageDelivered(){return this._getOnMessageDelivered()},set onMessageDelivered(a){this._setOnMessageDelivered(a)}, 69 | get onMessageArrived(){return this._getOnMessageArrived()},set onMessageArrived(a){this._setOnMessageArrived(a)},get trace(){return this._getTrace()},set trace(a){this._setTrace(a)}};var x=function(a){var b;if("string"===typeof a||a instanceof ArrayBuffer||a instanceof Int8Array||a instanceof Uint8Array||a instanceof Int16Array||a instanceof Uint16Array||a instanceof Int32Array||a instanceof Uint32Array||a instanceof Float32Array||a instanceof Float64Array)b=a;else throw f(g.INVALID_ARGUMENT,[a,"newPayload"]); 70 | this._getPayloadString=function(){return"string"===typeof b?b:G(b,0,b.length)};this._getPayloadBytes=function(){if("string"===typeof b){var a=new ArrayBuffer(m(b)),a=new Uint8Array(a);F(b,a,0);return a}return b};var c=void 0;this._getDestinationName=function(){return c};this._setDestinationName=function(a){if("string"===typeof a)c=a;else throw Error(f(g.INVALID_ARGUMENT,[a,"newDestinationName"]));};var h=0;this._getQos=function(){return h};this._setQos=function(a){if(0===a||1===a||2===a)h=a;else throw Error("Invalid argument:"+ 71 | a);};var e=!1;this._getRetained=function(){return e};this._setRetained=function(a){if("boolean"===typeof a)e=a;else throw Error(f(g.INVALID_ARGUMENT,[a,"newRetained"]));};var d=!1;this._getDuplicate=function(){return d};this._setDuplicate=function(a){d=a}};x.prototype={get payloadString(){return this._getPayloadString()},get payloadBytes(){return this._getPayloadBytes()},get destinationName(){return this._getDestinationName()},set destinationName(a){this._setDestinationName(a)},get qos(){return this._getQos()}, 72 | set qos(a){this._setQos(a)},get retained(){return this._getRetained()},set retained(a){this._setRetained(a)},get duplicate(){return this._getDuplicate()},set duplicate(a){this._setDuplicate(a)}};return{Client:I,Message:x}}(window); 73 | -------------------------------------------------------------------------------- /js/socket.io.min.js: -------------------------------------------------------------------------------- 1 | /*! Socket.IO.min.js build:0.9.16, production. Copyright(c) 2011 LearnBoost MIT Licensed */ 2 | var io="undefined"==typeof module?{}:module.exports;(function(){(function(a,b){var c=a;c.version="0.9.16",c.protocol=1,c.transports=[],c.j=[],c.sockets={},c.connect=function(a,d){var e=c.util.parseUri(a),f,g;b&&b.location&&(e.protocol=e.protocol||b.location.protocol.slice(0,-1),e.host=e.host||(b.document?b.document.domain:b.location.hostname),e.port=e.port||b.location.port),f=c.util.uniqueUri(e);var h={host:e.host,secure:"https"==e.protocol,port:e.port||("https"==e.protocol?443:80),query:e.query||""};c.util.merge(h,d);if(h["force new connection"]||!c.sockets[f])g=new c.Socket(h);return!h["force new connection"]&&g&&(c.sockets[f]=g),g=g||c.sockets[f],g.of(e.path.length>1?e.path:"")}})("object"==typeof module?module.exports:this.io={},this),function(a,b){var c=a.util={},d=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];c.parseUri=function(a){var b=d.exec(a||""),c={},f=14;while(f--)c[e[f]]=b[f]||"";return c},c.uniqueUri=function(a){var c=a.protocol,d=a.host,e=a.port;return"document"in b?(d=d||document.domain,e=e||(c=="https"&&document.location.protocol!=="https:"?443:document.location.port)):(d=d||"localhost",!e&&c=="https"&&(e=443)),(c||"http")+"://"+d+":"+(e||80)},c.query=function(a,b){var d=c.chunkQuery(a||""),e=[];c.merge(d,c.chunkQuery(b||""));for(var f in d)d.hasOwnProperty(f)&&e.push(f+"="+d[f]);return e.length?"?"+e.join("&"):""},c.chunkQuery=function(a){var b={},c=a.split("&"),d=0,e=c.length,f;for(;db.length?a:b,f=a.length>b.length?b:a;for(var g=0,h=f.length;g0&&a.splice(0,1)[0]!=c.transport.name);a.length?h(a):c.publish("connect_failed")}}},c.options["connect timeout"]))})}c.sessionid=d,c.closeTimeout=f*1e3,c.heartbeatTimeout=e*1e3,c.transports||(c.transports=c.origTransports=g?b.util.intersect(g.split(","),c.options.transports):c.options.transports),c.setHeartbeatTimeout(),h(c.transports),c.once("connect",function(){clearTimeout(c.connectTimeoutTimer),a&&typeof a=="function"&&a()})}),this},d.prototype.setHeartbeatTimeout=function(){clearTimeout(this.heartbeatTimeoutTimer);if(this.transport&&!this.transport.heartbeats())return;var a=this;this.heartbeatTimeoutTimer=setTimeout(function(){a.transport.onClose()},this.heartbeatTimeout)},d.prototype.packet=function(a){return this.connected&&!this.doBuffer?this.transport.packet(a):this.buffer.push(a),this},d.prototype.setBuffer=function(a){this.doBuffer=a,!a&&this.connected&&this.buffer.length&&(this.options.manualFlush||this.flushBuffer())},d.prototype.flushBuffer=function(){this.transport.payload(this.buffer),this.buffer=[]},d.prototype.disconnect=function(){if(this.connected||this.connecting)this.open&&this.of("").packet({type:"disconnect"}),this.onDisconnect("booted");return this},d.prototype.disconnectSync=function(){var a=b.util.request(),c=["http"+(this.options.secure?"s":"")+":/",this.options.host+":"+this.options.port,this.options.resource,b.protocol,"",this.sessionid].join("/")+"/?disconnect=1";a.open("GET",c,!1),a.send(null),this.onDisconnect("booted")},d.prototype.isXDomain=function(){var a=c.location.port||("https:"==c.location.protocol?443:80);return this.options.host!==c.location.hostname||this.options.port!=a},d.prototype.onConnect=function(){this.connected||(this.connected=!0,this.connecting=!1,this.doBuffer||this.setBuffer(!1),this.emit("connect"))},d.prototype.onOpen=function(){this.open=!0},d.prototype.onClose=function(){this.open=!1,clearTimeout(this.heartbeatTimeoutTimer)},d.prototype.onPacket=function(a){this.of(a.endpoint).onPacket(a)},d.prototype.onError=function(a){a&&a.advice&&a.advice==="reconnect"&&(this.connected||this.connecting)&&(this.disconnect(),this.options.reconnect&&this.reconnect()),this.publish("error",a&&a.reason?a.reason:a)},d.prototype.onDisconnect=function(a){var b=this.connected,c=this.connecting;this.connected=!1,this.connecting=!1,this.open=!1;if(b||c)this.transport.close(),this.transport.clearTimeouts(),b&&(this.publish("disconnect",a),"booted"!=a&&this.options.reconnect&&!this.reconnecting&&this.reconnect())},d.prototype.reconnect=function(){function e(){if(a.connected){for(var b in a.namespaces)a.namespaces.hasOwnProperty(b)&&""!==b&&a.namespaces[b].packet({type:"connect"});a.publish("reconnect",a.transport.name,a.reconnectionAttempts)}clearTimeout(a.reconnectionTimer),a.removeListener("connect_failed",f),a.removeListener("connect",f),a.reconnecting=!1,delete a.reconnectionAttempts,delete a.reconnectionDelay,delete a.reconnectionTimer,delete a.redoTransports,a.options["try multiple transports"]=c}function f(){if(!a.reconnecting)return;if(a.connected)return e();if(a.connecting&&a.reconnecting)return a.reconnectionTimer=setTimeout(f,1e3);a.reconnectionAttempts++>=b?a.redoTransports?(a.publish("reconnect_failed"),e()):(a.on("connect_failed",f),a.options["try multiple transports"]=!0,a.transports=a.origTransports,a.transport=a.getTransport(),a.redoTransports=!0,a.connect()):(a.reconnectionDelay=10:!1},c.xdomainCheck=function(){return!0},typeof window!="undefined"&&(WEB_SOCKET_DISABLE_AUTO_INITIALIZATION=!0),b.transports.push("flashsocket")}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports);if("undefined"!=typeof window)var swfobject=function(){function A(){if(t)return;try{var a=i.getElementsByTagName("body")[0].appendChild(Q("span"));a.parentNode.removeChild(a)}catch(b){return}t=!0;var c=l.length;for(var d=0;d0)for(var c=0;c0){var g=P(d);if(g)if(S(m[c].swfVersion)&&!(y.wk&&y.wk<312))U(d,!0),e&&(f.success=!0,f.ref=G(d),e(f));else if(m[c].expressInstall&&H()){var h={};h.data=m[c].expressInstall,h.width=g.getAttribute("width")||"0",h.height=g.getAttribute("height")||"0",g.getAttribute("class")&&(h.styleclass=g.getAttribute("class")),g.getAttribute("align")&&(h.align=g.getAttribute("align"));var i={},j=g.getElementsByTagName("param"),k=j.length;for(var l=0;l');h.outerHTML='"+k+"",n[n.length]=c.id,g=P(c.id)}else{var m=Q(b);m.setAttribute("type",e);for(var o in c)c[o]!=Object.prototype[o]&&(o.toLowerCase()=="styleclass"?m.setAttribute("class",c[o]):o.toLowerCase()!="classid"&&m.setAttribute(o,c[o]));for(var p in d)d[p]!=Object.prototype[p]&&p.toLowerCase()!="movie"&&M(m,p,d[p]);h.parentNode.replaceChild(m,h),g=m}}return g}function M(a,b,c){var d=Q("param");d.setAttribute("name",b),d.setAttribute("value",c),a.appendChild(d)}function N(a){var b=P(a);b&&b.nodeName=="OBJECT"&&(y.ie&&y.win?(b.style.display="none",function(){b.readyState==4?O(a):setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b))}function O(a){var b=P(a);if(b){for(var c in b)typeof b[c]=="function"&&(b[c]=null);b.parentNode.removeChild(b)}}function P(a){var b=null;try{b=i.getElementById(a)}catch(c){}return b}function Q(a){return i.createElement(a)}function R(a,b,c){a.attachEvent(b,c),o[o.length]=[a,b,c]}function S(a){var b=y.pv,c=a.split(".");return c[0]=parseInt(c[0],10),c[1]=parseInt(c[1],10)||0,c[2]=parseInt(c[2],10)||0,b[0]>c[0]||b[0]==c[0]&&b[1]>c[1]||b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]?!0:!1}function T(c,d,e,f){if(y.ie&&y.mac)return;var g=i.getElementsByTagName("head")[0];if(!g)return;var h=e&&typeof e=="string"?e:"screen";f&&(v=null,w=null);if(!v||w!=h){var j=Q("style");j.setAttribute("type","text/css"),j.setAttribute("media",h),v=g.appendChild(j),y.ie&&y.win&&typeof i.styleSheets!=a&&i.styleSheets.length>0&&(v=i.styleSheets[i.styleSheets.length-1]),w=h}y.ie&&y.win?v&&typeof v.addRule==b&&v.addRule(c,d):v&&typeof i.createTextNode!=a&&v.appendChild(i.createTextNode(c+" {"+d+"}"))}function U(a,b){if(!x)return;var c=b?"visible":"hidden";t&&P(a)?P(a).style.visibility=c:T("#"+a,"visibility:"+c)}function V(b){var c=/[\\\"<>\.;]/,d=c.exec(b)!=null;return d&&typeof encodeURIComponent!=a?encodeURIComponent(b):b}var a="undefined",b="object",c="Shockwave Flash",d="ShockwaveFlash.ShockwaveFlash",e="application/x-shockwave-flash",f="SWFObjectExprInst",g="onreadystatechange",h=window,i=document,j=navigator,k=!1,l=[D],m=[],n=[],o=[],p,q,r,s,t=!1,u=!1,v,w,x=!0,y=function(){var f=typeof i.getElementById!=a&&typeof i.getElementsByTagName!=a&&typeof i.createElement!=a,g=j.userAgent.toLowerCase(),l=j.platform.toLowerCase(),m=l?/win/.test(l):/win/.test(g),n=l?/mac/.test(l):/mac/.test(g),o=/webkit/.test(g)?parseFloat(g.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,p=!1,q=[0,0,0],r=null;if(typeof j.plugins!=a&&typeof j.plugins[c]==b)r=j.plugins[c].description,r&&(typeof j.mimeTypes==a||!j.mimeTypes[e]||!!j.mimeTypes[e].enabledPlugin)&&(k=!0,p=!1,r=r.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),q[0]=parseInt(r.replace(/^(.*)\..*$/,"$1"),10),q[1]=parseInt(r.replace(/^.*\.(.*)\s.*$/,"$1"),10),q[2]=/[a-zA-Z]/.test(r)?parseInt(r.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof h[["Active"].concat("Object").join("X")]!=a)try{var s=new(window[["Active"].concat("Object").join("X")])(d);s&&(r=s.GetVariable("$version"),r&&(p=!0,r=r.split(" ")[1].split(","),q=[parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10)]))}catch(t){}return{w3:f,pv:q,wk:o,ie:p,win:m,mac:n}}(),z=function(){if(!y.w3)return;(typeof i.readyState!=a&&i.readyState=="complete"||typeof i.readyState==a&&(i.getElementsByTagName("body")[0]||i.body))&&A(),t||(typeof i.addEventListener!=a&&i.addEventListener("DOMContentLoaded",A,!1),y.ie&&y.win&&(i.attachEvent(g,function(){i.readyState=="complete"&&(i.detachEvent(g,arguments.callee),A())}),h==top&&function(){if(t)return;try{i.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}A()}()),y.wk&&function(){if(t)return;if(!/loaded|complete/.test(i.readyState)){setTimeout(arguments.callee,0);return}A()}(),C(A))}(),W=function(){y.ie&&y.win&&window.attachEvent("onunload",function(){var a=o.length;for(var b=0;b= 10.0.0 is required.");return}location.protocol=="file:"&&a.error("WARNING: web-socket-js doesn't work in file:///... URL unless you set Flash Security Settings properly. Open the page via Web server i.e. http://..."),WebSocket=function(a,b,c,d,e){var f=this;f.__id=WebSocket.__nextId++,WebSocket.__instances[f.__id]=f,f.readyState=WebSocket.CONNECTING,f.bufferedAmount=0,f.__events={},b?typeof b=="string"&&(b=[b]):b=[],setTimeout(function(){WebSocket.__addTask(function(){WebSocket.__flash.create(f.__id,a,b,c||null,d||0,e||null)})},0)},WebSocket.prototype.send=function(a){if(this.readyState==WebSocket.CONNECTING)throw"INVALID_STATE_ERR: Web Socket connection has not been established";var b=WebSocket.__flash.send(this.__id,encodeURIComponent(a));return b<0?!0:(this.bufferedAmount+=b,!1)},WebSocket.prototype.close=function(){if(this.readyState==WebSocket.CLOSED||this.readyState==WebSocket.CLOSING)return;this.readyState=WebSocket.CLOSING,WebSocket.__flash.close(this.__id)},WebSocket.prototype.addEventListener=function(a,b,c){a in this.__events||(this.__events[a]=[]),this.__events[a].push(b)},WebSocket.prototype.removeEventListener=function(a,b,c){if(!(a in this.__events))return;var d=this.__events[a];for(var e=d.length-1;e>=0;--e)if(d[e]===b){d.splice(e,1);break}},WebSocket.prototype.dispatchEvent=function(a){var b=this.__events[a.type]||[];for(var c=0;c"),this.doc.close(),this.doc.parentWindow.s=this;var a=this.doc.createElement("div");a.className="socketio",this.doc.body.appendChild(a),this.iframe=this.doc.createElement("iframe"),a.appendChild(this.iframe);var c=this,d=b.util.query(this.socket.options.query,"t="+ +(new Date));this.iframe.src=this.prepareUrl()+d,b.util.on(window,"unload",function(){c.destroy()})},c.prototype._=function(a,b){a=a.replace(/\\\//g,"/"),this.onData(a);try{var c=b.getElementsByTagName("script")[0];c.parentNode.removeChild(c)}catch(d){}},c.prototype.destroy=function(){if(this.iframe){try{this.iframe.src="about:blank"}catch(a){}this.doc=null,this.iframe.parentNode.removeChild(this.iframe),this.iframe=null,CollectGarbage()}},c.prototype.close=function(){return this.destroy(),b.Transport.XHR.prototype.close.call(this)},c.check=function(a){if(typeof window!="undefined"&&["Active"].concat("Object").join("X")in window)try{var c=new(window[["Active"].concat("Object").join("X")])("htmlfile");return c&&b.Transport.XHR.check(a)}catch(d){}return!1},c.xdomainCheck=function(){return!1},b.transports.push("htmlfile")}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports),function(a,b,c){function d(){b.Transport.XHR.apply(this,arguments)}function e(){}a["xhr-polling"]=d,b.util.inherit(d,b.Transport.XHR),b.util.merge(d,b.Transport.XHR),d.prototype.name="xhr-polling",d.prototype.heartbeats=function(){return!1},d.prototype.open=function(){var a=this;return b.Transport.XHR.prototype.open.call(a),!1},d.prototype.get=function(){function b(){this.readyState==4&&(this.onreadystatechange=e,this.status==200?(a.onData(this.responseText),a.get()):a.onClose())}function d(){this.onload=e,this.onerror=e,a.retryCounter=1,a.onData(this.responseText),a.get()}function f(){a.retryCounter++,!a.retryCounter||a.retryCounter>3?a.onClose():a.get()}if(!this.isOpen)return;var a=this;this.xhr=this.request(),c.XDomainRequest&&this.xhr instanceof XDomainRequest?(this.xhr.onload=d,this.xhr.onerror=f):this.xhr.onreadystatechange=b,this.xhr.send(null)},d.prototype.onClose=function(){b.Transport.XHR.prototype.onClose.call(this);if(this.xhr){this.xhr.onreadystatechange=this.xhr.onload=this.xhr.onerror=e;try{this.xhr.abort()}catch(a){}this.xhr=null}},d.prototype.ready=function(a,c){var d=this;b.util.defer(function(){c.call(d)})},b.transports.push("xhr-polling")}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports,this),function(a,b,c){function e(a){b.Transport["xhr-polling"].apply(this,arguments),this.index=b.j.length;var c=this;b.j.push(function(a){c._(a)})}var d=c.document&&"MozAppearance"in c.document.documentElement.style;a["jsonp-polling"]=e,b.util.inherit(e,b.Transport["xhr-polling"]),e.prototype.name="jsonp-polling",e.prototype.post=function(a){function i(){j(),c.socket.setBuffer(!1)}function j(){c.iframe&&c.form.removeChild(c.iframe);try{h=document.createElement('