scratch

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 136  →  ?path2? @ 137
/index.html
@@ -26,7 +26,6 @@
 
<body>
<!-- Include first body content -->
<!-- <div id="scratch-body-first"></div> -->
<ng-include src="'html/scratch-body-first.html'"></ng-include>
<!-- Main component for a primary marketing message or call to action -->
@@ -50,50 +49,8 @@
<li><a href="view.html">View</a></li>
</ul>
<div class="row">
<h2>About</h2>
<p><strong>scratch copy</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>
</div>
<div class="row" ng-app="scratch" ng-controller="scratch-control">
<h2>Configuration</h2>
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">Current Configuration Settings</div>
<div class="panel-body">
<!-- Table -->
<table class="table table-striped table-hover table-condensed table-responsive">
<thead>
<tr>
<th>
Description
</th>
<th>
Limit
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
File extensions accepted for upload.
</td>
<td>
<span ng-repeat="extension in extensions" id="box">{{extension}} </span>
</td>
</tr>
<tr>
<td>
Allowed file size upload limit.
</td>
<td>
<p>{{uploadlimit}}MiB</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<ng-include src="'html/scratch-home.html'"></ng-include>
</div>
 
</div> <!-- /container -->
@@ -119,13 +76,13 @@
<!-- js-cookie -->
<script src="bower_components/js-cookie/src/js.cookie.js"></script>
<script>
var app = angular.module('scratch', []);
const app = angular.module('scratch', []);
app.controller('scratch-control', function($scope, $http) {
$http.get('config.yaml').then((response) => {
var doc = YAML.parse(response.data);
$scope.extensions = doc.ALLOWED_FILE_EXTENSIONS;
$scope.uploadlimit = doc.ALLOWED_ASSET_SIZE;
});
$http.get('config.yaml').then((response) => {
var doc = YAML.parse(response.data);
$scope.extensions = doc.ALLOWED_FILE_EXTENSIONS;
$scope.uploadlimit = doc.ALLOWED_ASSET_SIZE;
});
});
</script>
<!-- Jumbotron parallax effect -->