forked from smaranjitghose/doc2pen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
94 lines (85 loc) · 3.36 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/logo.webp" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="A student's savior to submit those assignments by just typing them out and getting it handwritten on the go!"
data-react-helmet="true"
/>
<link rel="preconnect" href="https://api.github.com">
<link rel="dynamic icon" id="favicon" href="doc2penlogo.png" />
<!-- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo.webp" /> -->
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet'>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" crossorigin="" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Doc2Pen</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<script>
let isNotInitiated;
var initParticles = function () {
if(isNotInitiated){
var ps = new ParticleSlider({
ptlGap: 0,
ptlSize: 0,
width: 1e9,
height: 1e9,
mouseForce: 400,
});
window.addEventListener
? window.addEventListener(
"click",
function () {
ps.init(true);
},
false
)
: (window.onclick = function () {
ps.init(true);
});
isNotInitiated = false;
}
};
var initParticleSlider = (function () {
var psScript = document.createElement("script");
psScript.addEventListener
? psScript.addEventListener("load", initParticles, false)
: (psScript.onload = initParticles);
psScript.src = 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/23500/ps-0.9.js';
psScript.setAttribute("type", "text/javascript");
document.body.appendChild(psScript);
isNotInitiated = true;
})(
window.addEventListener
? window.addEventListener("load", initParticleSlider, false)
: (window.onload = initParticleSlider)
);
</script>
</body>
</html>