Commit e282848c authored by Luc Didry's avatar Luc Didry
Browse files

Fix #21

parent dff825ba
Font license info
## Entypo
Copyright (C) 2012 by Daniel Bruce
Author: Daniel Bruce
License: SIL (http://scripts.sil.org/OFL)
Homepage: http://www.entypo.com
@font-face {
font-family: 'fontello';
src: url('../font/fontello.eot?1363391');
src: url('../font/fontello.eot?1363391#iefix') format('embedded-opentype'),
url('../font/fontello.svg?1363391#fontello') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'fontello';
src: url('data:application/octet-stream;base64,d09GRgABAAAAAArYAA8AAAAAEzwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABWAAAADsAAABUIIslek9TLzIAAAGUAAAAQwAAAFY+IEl3Y21hcAAAAdgAAABKAAABcOkou6pjdnQgAAACJAAAABMAAAAgBtX/BGZwZ20AAAI4AAAFkAAAC3CKkZBZZ2FzcAAAB8gAAAAIAAAACAAAABBnbHlmAAAH0AAAAHYAAAB26c5kdWhlYWQAAAhIAAAALgAAADYPpwIzaGhlYQAACHgAAAAbAAAAJAc8A1VobXR4AAAIlAAAAAgAAAAIB9AAAGxvY2EAAAicAAAABgAAAAYAOwAAbWF4cAAACKQAAAAgAAAAIADQC5puYW1lAAAIxAAAAXcAAALNzJ0dH3Bvc3QAAAo8AAAAHwAAADDX8Gp8cHJlcAAAClwAAAB6AAAAhuVBK7x4nGNgZGBg4GIwYLBjYHJx8wlh4MtJLMljkGJgYYAAkDwymzEnMz2RgQPGA8qxgGkOIGaDiAIAJjsFSAB4nGNgZH7BOIGBlYGBqYppDwMDQw+EZnzAYMjIBBRlYGVmwAoC0lxTGBxeMLxgYA76n8UQxRzEMA0ozAiSAwAKbQwVAHic7ZCxDYAwEAPPykOBGIEqNbNQsX/NFsnHwBaxdJZ8+uqBBSjJmQToRoxcaWVf2OyD6psY/qG1v3OHG63M7O7jW/7VC+ot1glxAAB4nGNgQAMSEMgc9D8LhAESbAPdAHicrVZpd9NGFB15SZyELCULLWphxMR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LbBFLLAAFSBHsAAjQrIAAQEVFBMusDEqLbBGLLEAARQTsDIqLbBHLLA0Ki2wSCywABZFIyAuIEaKI2E4sSsBFCstsEkssAgjQrBIKy2wSiyyAABBKy2wSyyyAAFBKy2wTCyyAQBBKy2wTSyyAQFBKy2wTiyyAABCKy2wTyyyAAFCKy2wUCyyAQBCKy2wUSyyAQFCKy2wUiyyAAA+Ky2wUyyyAAE+Ky2wVCyyAQA+Ky2wVSyyAQE+Ky2wViyyAABAKy2wVyyyAAFAKy2wWCyyAQBAKy2wWSyyAQFAKy2wWiyyAABDKy2wWyyyAAFDKy2wXCyyAQBDKy2wXSyyAQFDKy2wXiyyAAA/Ky2wXyyyAAE/Ky2wYCyyAQA/Ky2wYSyyAQE/Ky2wYiywNysusSsBFCstsGMssDcrsDsrLbBkLLA3K7A8Ky2wZSywABawNyuwPSstsGYssDgrLrErARQrLbBnLLA4K7A7Ky2waCywOCuwPCstsGkssDgrsD0rLbBqLLA5Ky6xKwEUKy2wayywOSuwOystsGwssDkrsDwrLbBtLLA5K7A9Ky2wbiywOisusSsBFCstsG8ssDorsDsrLbBwLLA6K7A8Ky2wcSywOiuwPSstsHIsswkEAgNFWCEbIyFZQiuwCGWwAyRQeLABFTAtAEu4AMhSWLEBAY5ZsAG5CAAIAGNwsQAFQrIAAQAqsQAFQrMKAgEIKrEABUKzDgABCCqxAAZCugLAAAEACSqxAAdCugBAAAEACSqxAwBEsSQBiFFYsECIWLEDZESxJgGIUVi6CIAAAQRAiGNUWLEDAERZWVlZswwCAQwquAH/hbAEjbECAEQAAA==') format('truetype');
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: 'fontello';
src: url('../font/fontello.svg?1363391#fontello') format('svg');
}
}
*/
[class^="icon-"]:before, [class*=" icon-"]:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
margin-right: .2em;
text-align: center;
/* opacity: .8; */
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
/* Animation center compensation - margins should be symmetric */
/* remove if not needed */
margin-left: .2em;
/* you can be more comfortable with increased icons size */
/* font-size: 120%; */
/* Uncomment for 3D effect */
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}
.icon-switch:before { content: '\e800'; } /* '' */
\ No newline at end of file
......@@ -7,6 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/dashboard.min.css" rel="stylesheet">
<link href="fontello/css/fontello-embedded.css" rel="stylesheet">
<link href="css/wema_wema.min.css" rel="stylesheet">
<link href="img/favicon.png?v=2" rel="icon" type="image/png">
</head>
......@@ -57,6 +58,13 @@
<a class="dropdown-item" href="#" data-i18n="groot">Groot</a>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="donate-xport" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="icon-switch" aria-hidden="true" title="Import and export" id="import-n-export"></i></a>
<div class="dropdown-menu" aria-labelledby="donate-xport">
<a class="dropdown-item" href="#" id="export">Export gallery data</a>
<a class="dropdown-item" href="#" id="import">Import gallery data</a>
</div>
</li>
</ul>
</div>
</nav>
......@@ -578,6 +586,9 @@
</div>
<div id="gallery" class="d-none row">
</div>
<span class="file-field input-field d-none">
<input id="import-file" onchange="importData(this.files)" type="file">
</span>
</main>
</div>
<script src="js/jquery-3.2.1.min.js"></script>
......
......@@ -8,6 +8,7 @@ var load = 'Load';
var deleteText = 'Delete';
var download = 'Download';
var downloadClic = 'Please, right-click on the sticker and select "Save as" to download the sticker'
var importOk = 'Your file has been successfully imported';
var customImg;
var fonts = {
......@@ -165,7 +166,7 @@ function translate(userLang, languages) {
}
});
['donate-dpdn', 'i18n-dpdn', 'settings-dpdn', 'toggle-svg', 'download', 'reset', 'switch-colors',
'make-text-center', 'print', 'save'
'make-text-center', 'print', 'save', 'import', 'export'
].forEach(function(e) {
if (locale[e] !== undefined) {
if (e === 'download') {
......@@ -174,6 +175,9 @@ function translate(userLang, languages) {
$('#'+e).text(locale[e]);
}
});
if (locale['import-n-export'] !== undefined) {
$('#import-n-export').attr('title', locale['import-n-export']);
}
if (locale['toggle-canvas'] !== undefined) {
workCanvas = locale['toggle-canvas'];
}
......@@ -196,6 +200,9 @@ function translate(userLang, languages) {
c.text(customImgText);
}
}
if (locale['import-ok'] !== undefined) {
importOk = locale['import-ok'];
}
if (locale['download-clic'] !== undefined) {
downloadClic = locale['download-clic'];
}
......@@ -443,6 +450,15 @@ function bindEvents() {
refreshFilename();
});
// import data
$('#import').click(function(e) {
e.preventDefault();
$('#import-file').click();
});
// Export data
$('#export').click(exportData);
// Download
$('#download').click(function(e) {
this.download = $('#filename').val();
......@@ -1335,3 +1351,42 @@ function createUrl(url, w, wx, wy, ws, wc, wa, wf, wfs, ww, p, px, py, ps, pc, p
return url;
}
function importData(f) {
var reader = new FileReader();
reader.addEventListener("loadend", function() {
try {
var newWemas = JSON.parse(String.fromCharCode.apply(null, new Uint8Array(reader.result)));
var wemas = localStorage.getItem('wemas');
if (wemas === null) {
localStorage.setItem('wemas', JSON.stringify(newWemas));
} else {
wemas = JSON.parse(wemas);
$.extend(wemas, newWemas);
localStorage.setItem('wemas', JSON.stringify(wemas));
}
fillGallery();
alert(importOk);
} catch(err) {
alert(err);
}
});
reader.readAsArrayBuffer(f[0]);
}
function exportData(e) {
e.preventDefault();
var a = $('<a id="export-data-json">');
a.hide();
$('body').append(a);
var storageData = [localStorage.getItem('wemas')];
var exportFile = new Blob(storageData, {type : 'application/json'});
var url = window.URL.createObjectURL(exportFile);
a.attr('href', url);
a.attr('download', 'export-data.json');
$('#export-data-json')[0].click();
$('#export-data-json').remove();
}
This diff is collapsed.
......@@ -83,5 +83,9 @@
"whale": "Whale",
"text-width": "Text width",
"outline-color": "Outline color",
"outline-size": "Outline size"
"outline-size": "Outline size",
"import-n-export": "Data import and export",
"import": "Import saved images",
"export": "Export saved images",
"import-ok": "Your file has been successfully imported"
}
......@@ -83,5 +83,9 @@
"whale": "Baleine",
"text-width": "Largeur du texte",
"outline-color": "Couleur du contour du texte",
"outline-size": "Taille du contour du texte"
"outline-size": "Taille du contour du texte",
"import-n-export": "Import et export de données",
"import": "Importer des images sauvegardées",
"export": "Exporter les images sauvegardées",
"import-ok": "Votre fichier a été importé avec succès"
}
......@@ -83,5 +83,9 @@
"whale": "I am Groot",
"text-width": "I am Groot",
"outline-color": "I am Groot",
"outline-size": "I am Groot"
"outline-size": "I am Groot",
"import-n-export": "I am Groot",
"import": "I am Groot",
"export": "I am Groot",
"import-ok": "I am Groot"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment