scratch – Diff between revs 71 and 75
?pathlinks?
Rev 71 | Rev 75 | |||
---|---|---|---|---|
Line 38... | Line 38... | |||
38 | </ul> |
38 | </ul> |
|
Line 39... | Line 39... | |||
39 | |
39 | |
|
40 | |
40 | |
|
41 | <div class="row"> |
41 | <div class="row"> |
|
42 | <h2>About</h2> |
42 | <h2>About</h2> |
|
- | 43 | <p><strong>scratch</strong> is a platform for small-sized asset sharing developed by <a href="http://grimore.org">Wizardry and Steamworks</a> and published under the <a href="https://creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC 1.0 Universal (CC0 1.0)</a> license. The sharing platform covers images, text snippets, movie clips and any sort of media that can be conveniently shared by generating short, public and obfuscated URLs that are easily accessible.</p> |
||
- | 44 | <!-- <p><a class="btn btn-default" href="#" role="button">View details »</a></p> --> |
||
- | 45 | </div> |
||
- | 46 | <div class="row" ng-app="scratch" ng-controller="scratch-control" > |
||
- | 47 | <h2>Configuration</h2> |
||
- | 48 | <p>The <strong>scratch</strong> platform can</p> |
||
43 | <p><strong>scratch</strong> is a platform for small-sized asset sharing developed by <a href="http://grimore.org">Wizardry and Steamworks</a> and published under the <a href="https://creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC 1.0 Universal (CC0 1.0)</a> license. The sharing platform covers images, text snippets, movie clips and any sort of media that can be conveniently shared by generating short, public and obfuscated URLs that are easily accessible.</p> |
49 | <h3>Allowed Files</h3> |
|
Line 44... | Line 50... | |||
44 | <!-- <p><a class="btn btn-default" href="#" role="button">View details »</a></p> --> |
50 | The following files, expressed as file extensions: <div ng-repeat="extension in extensions"><span id="box">{{extension}}</span></div> are currently accepted for uploading. |
|
Line 45... | Line 51... | |||
45 | </div> |
51 | </div> |
|
Line 52... | Line 58... | |||
52 | </div> |
58 | </div> |
|
53 | </div> |
59 | </div> |
|
Line 54... | Line 60... | |||
54 | |
60 | |
|
55 | <!-- jQuery --> |
61 | <!-- jQuery --> |
|
- | 62 | <script src="bower_components/jquery/dist/jquery.min.js"></script> |
||
- | 63 | <!-- Angular JS --> |
||
56 | <script src="bower_components/jquery/dist/jquery.min.js"></script> |
64 | <script src="bower_components/angular/angular.min.js"></script> |
|
57 | <!-- BootStrap --> |
65 | <!-- BootStrap --> |
|
58 | <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> |
66 | <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> |
|
59 | <!-- SoundJS --> |
67 | <!-- SoundJS --> |
|
- | 68 | <script src="bower_components/SoundJS/lib/soundjs-NEXT.combined.js"></script> |
||
- | 69 | <!-- YAML --> |
||
- | 70 | <script src="bower_components/yaml.js/dist/yaml.min.js"></script> |
||
- | 71 | <script> |
||
- | 72 | var app = angular.module('scratch', []); |
||
- | 73 | app.controller('scratch-control', function($scope, $http) { |
||
- | 74 | $http.get('config.yaml').then((response) => { |
||
- | 75 | var doc = YAML.parse(response.data); |
||
- | 76 | //alert(JSON.stringify(doc)); |
||
- | 77 | $scope.extensions = doc.ALLOWED_FILE_EXTENSIONS; |
||
- | 78 | }); |
||
- | 79 | }); |
||
60 | <script src="bower_components/SoundJS/lib/soundjs-NEXT.combined.js"></script> |
80 | </script> |
|
61 | <!-- Jumbotron parallax effect --> |
81 | <!-- Jumbotron parallax effect --> |
|
62 | <script> |
82 | <script> |
|
63 | var jumboHeight = $('.jumbotron').outerHeight(); |
83 | var jumboHeight = $('.jumbotron').outerHeight(); |
|
64 | function parallax(){ |
84 | function parallax(){ |
|
Line 68... | Line 88... | |||
68 | |
88 | |
|
69 | $(window).scroll(function(e){ |
89 | $(window).scroll(function(e){ |
|
70 | parallax(); |
90 | parallax(); |
|
71 | }); |
91 | }); |
|
- | 92 | </script> |
||
72 | </script> |
93 | <!-- Hiss sounds --> |
|
73 | <script> |
94 | <script> |
|
74 | $(document).ready(() => { |
95 | $(document).ready(() => { |
|
75 | if (!createjs.Sound.initializeDefaultPlugins() || |
96 | if (!createjs.Sound.initializeDefaultPlugins() || |
|
76 | createjs.BrowserDetect.isIOS || |
97 | createjs.BrowserDetect.isIOS || |