mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-11 19:00:00 +01:00
* Add manifest.json * cache static assets for offline use * update cache * add meta theme-color and change static files to be cache * cache the files on network request * caching on first run Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * add a button to clear cache * add styling to clear cache link
146 lines
5.0 KiB
HTML
146 lines
5.0 KiB
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
<head>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF8">
|
|
<meta name="theme-color" content="#428bca">
|
|
<link rel="icon" sizes="192x192" href="../icons/ic_192.png">
|
|
<link rel="manifest" href="manifest.json">
|
|
|
|
<title>Image Sequencer</title>
|
|
|
|
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
|
|
<script src="../node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
|
<script src="../src/ui/prepareDynamic.js"></script>
|
|
<script src="../dist/image-sequencer.js" charset="utf-8"></script>
|
|
<script src="lib/urlHash.js" charset="utf-8"></script>
|
|
<script src="lib/defaultHtmlStepUi.js" charset="utf-8"></script>
|
|
<script src="lib/defaultHtmlSequencerUi.js" charset="utf-8"></script>
|
|
<script src="demo.js" charset="utf-8"></script>
|
|
<!-- for crop module: -->
|
|
<script src="../node_modules/imgareaselect/jquery.imgareaselect.dev.js"></script>
|
|
<script src="gifshot.js" type="text/javascript"></script>
|
|
|
|
<!-- Download.js for large files -->
|
|
<script src="../node_modules/downloadjs/download.min.js" type="text/javascript"/>
|
|
|
|
<script src="lib/scrollToTop.js"></script>
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
<link href="../node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="../node_modules/font-awesome/css/font-awesome.min.css" rel="stylesheet">
|
|
<!-- for crop module: -->
|
|
<link href="../node_modules/imgareaselect/distfiles/css/imgareaselect-default.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="demo.css">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<header class="text-center">
|
|
<h1>Image Sequencer</h1>
|
|
<p>
|
|
A pure JavaScript sequential image processing system, inspired by storyboards. Instead of modifying the original image, it
|
|
creates a new image at each step in a sequence.
|
|
<a href="https://publiclab.org/image-sequencer">Learn more</a>
|
|
</p>
|
|
<p>
|
|
Open Source
|
|
<a href="https://github.com/publiclab/image-sequencer">
|
|
<i class="fa fa-github"></i>
|
|
</a>
|
|
by <a href= "https://publiclab.org" title = "Publiclab Website"><i class = "fa fa-globe"></i> Publiclab</a>
|
|
</p>
|
|
</header>
|
|
|
|
<div id="dropzone">
|
|
<p>
|
|
<i>Select or drag in an image to start!</i>
|
|
</p>
|
|
<center>
|
|
<input type="file" id="fileInput" value="" accept="image/*">
|
|
</center>
|
|
</div>
|
|
|
|
<section id="steps" class="row"></section>
|
|
|
|
<hr />
|
|
<div class="row">
|
|
<div class="col-sm-8">
|
|
<section id="addStep" class="panel panel-primary">
|
|
<div class="form-inline">
|
|
<div class="panel-body">
|
|
<div style="text-align:center;">
|
|
<select class="form-control input-lg" id="selectStep">
|
|
<option value="none" disabled selected>Select a new step...</option>
|
|
</select>
|
|
<button class="btn btn-success btn-lg" name="add" id="add-step-btn">Add Step</button>
|
|
</div>
|
|
<br />
|
|
<p class="info">Select a new module to add to your sequence.</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<div class="col-sm-4">
|
|
<section id="dwnld" class="panel panel-primary">
|
|
<div class="form-inline">
|
|
<div class="panel-body">
|
|
<div style="text-align:center;">
|
|
<button class="btn btn-success btn-lg" id="download-btn" name="download">Download PNG</button>
|
|
<button class="btn btn-success btn-lg js-view-as-gif" id="gif">View GIF</button>
|
|
|
|
<div class="modal fade" id="js-download-gif-modal" tabindex="-1" role="dialog">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title">Your gif is ready</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div id="js-download-modal-gif-container">
|
|
<!-- Gif should appear here -->
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Done</button>
|
|
|
|
<button id="js-download-as-gif-button" class="btn btn-primary">Download</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
<button class="btn btn-primary btn-lg" name="save-sequence" id="save-seq">Save Sequence</button>
|
|
</div>
|
|
|
|
<form class="move-up" action="#up">
|
|
<button><i class="fa fa-arrow-circle-o-up"></i></button>
|
|
</form>
|
|
|
|
<footer>
|
|
<hr style="margin:20px;"><center><a class="color:grey;" id="clear-cache">Clear offline cache</a></center>
|
|
</footer>
|
|
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
var sequencer;
|
|
})
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|