Skip to content

Commit

Permalink
Merge pull request #37 from Legogris/vendor-assets
Browse files Browse the repository at this point in the history
Vendor assets
  • Loading branch information
eranchetz authored Jan 3, 2021
2 parents e04ea6d + b614f44 commit 5b64835
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 10 deletions.
7 changes: 7 additions & 0 deletions static/clipboard.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added static/fonts/montserrat-regular.ttf
Binary file not shown.
9 changes: 2 additions & 7 deletions static/getmsg.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@
<html>

<head>



<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>

<body>
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.6.1/clipboard.min.js"></script>
<script type="text/javascript" src="/static/jquery-2.1.1.min.js" integrity="sha384-fj9YEHKNa/e0CNquG4NcocjoyMATYo1k2Ff5wGB42C/9AwOlJjDoySPtNJalccfI"></script>
<script type="text/javascript" src="/static/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3"></script>
<link rel="stylesheet" href="/static/application.css">
<main class="send">
<div class="container">
Expand Down Expand Up @@ -69,7 +66,6 @@ <h1>Secret Message</h1>
method: 'get'
}).then(function (response) {
response.json().then(function (json) {
//decodedMsg = window.atob(json.msg)//console.log("response=", json.msg);
saveData(json.msg, name);
});

Expand All @@ -87,7 +83,6 @@ <h1>Secret Message</h1>
return function (data, fileName) {
console.log( "data=", data);
console.log( "fileName=", fileName);
//var blob = new Blob([json], { type: "octet/stream" }),
var blob = b64toBlob([data], { type: "octet/stream" })
url = window.URL.createObjectURL(blob);
a.href = url;
Expand Down
6 changes: 3 additions & 3 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<meta name="theme-color" content="#ffffff">
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<link href="/static/montserrat.css" rel="stylesheet">
<link rel="stylesheet" href="/static/application.css">
</head>

Expand Down Expand Up @@ -58,8 +58,8 @@ <h1>Secret Message</h1>

</main>
</body>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js"></script>
<script type="text/javascript" src="/static/jquery-2.1.1.min.js" integrity="sha384-fj9YEHKNa/e0CNquG4NcocjoyMATYo1k2Ff5wGB42C/9AwOlJjDoySPtNJalccfI"></script>
<script type="text/javascript" src="/static/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3"></script>
<script type="text/javascript">
new Clipboard(".btn");

Expand Down
4 changes: 4 additions & 0 deletions static/jquery-2.1.1.min.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions static/montserrat.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 400;
src: local('Montserrat Regular'), local('Montserrat-Regular'), url(/static/fonts/montserrat-regular.ttf) format('truetype');
}

0 comments on commit 5b64835

Please sign in to comment.