-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
154 lines (152 loc) · 6.41 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<html>
<head>
<title>Doodle Board</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8" />
<link rel="canonical" href="/Doodle-Board">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Doodle Board" />
<meta property="og:description" content="An SVG Doodle Board to build smooth SVG doodles in browser" />
<meta name="keywords" content="doodle, game, theabbie, doodle board" />
<meta name="news_keywords" content="doodle, game, theabbie, doodle board" />
<meta name="Author" content="Abhishek Chaudhary">
<meta name="language" content="English">
<meta property="og:url" content="https://theabbie.github.io/Doodle-Board" />
<meta property="og:site_name" content="TheAbbie" />
<meta property="article:tag" content="doodle" />
<meta property="article:tag" content="game" />
<meta property="article:tag" content="theabbie" />
<meta property="article:tag" content="doodle board" />
<meta property="fb:app_id" content="773417293013792" />
<meta property="article:section" content="Review" />
<meta property="article:published_time" content="2020-04-22T08:34:48 00:00" />
<meta property="article:modified_time" content="2020-04-22T08:34:51 00:00" />
<meta property="og:updated_time" content="2020-04-22T08:34:51 00:00" />
<meta property="og:image" content="https://theabbie.github.io/Doodle-Board/logo.png" />
<meta property="og:image:secure_url" content="https://theabbie.github.io/Doodle-Board/logo.png" />
<meta property="og:image:width" content="600" />
<meta property="og:image:height" content="445" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:description" content="An SVG Doodle Board to build smooth SVG doodles in browser" />
<meta name="twitter:title" content="Doodle Board" />
<meta name="twitter:image" content="https://theabbie.github.io/Doodle-Board/logo.png" />
<link rel="manifest" href="/manifest.json">
<link rel="alternate" type="application/rss xml" title="TheAbbie Blog" href="https://theabbie.github.io/rss.xml" />
<link rel="me" href="mailto:[email protected]" />
<link rel="me" href="sms: 918928412138" />
<link rel="apple-touch-icon" sizes="180x180" href="/files/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/files/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="194x194" href="/files/favicons/favicon-194x194.png">
<link rel="icon" type="image/png" sizes="192x192" href="/files/favicons/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="16x16" href="/files/favicons/favicon-16x16.png">
<link rel="mask-icon" href="/files/favicons/safari-pinned-tab.svg" color="#000000">
<link rel="shortcut icon" href="/files/favicons/favicon.ico">
<meta name="msapplication-TileColor" content="#000000">
<meta name="msapplication-TileImage" content="/files/favicons/mstile-144x144.png">
<meta name="msapplication-config" content="/files/favicons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<script type="application/ld json">
[{
"@context" : "https://schema.org",
"@type" : "WebPage",
"name" : "Doodle Board",
"description" : "An SVG Doodle Board to build smooth SVG doodles in browser",
"keywords" : "doodle, game, theabbie, doodle board",
"speakable" : {
"@type" : "SpeakableSpecification",
"cssSelector" : "[Doodle Board, An SVG Doodle Board to build smooth SVG doodles in browser]"
},
"url" : "https://theabbie.github.io/Doodle-Board"
},{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Doodle Board",
"alternativeHeadline": "Doodle Board | TheAbbie",
"image": "https://theabbie.github.io/Doodle-Board/logo.png",
"author": "Abhishek Chaudhary",
"editor": "Abhishek Chaudhary",
"genre": "Technology",
"keywords": "doodle, game, theabbie, doodle board",
"wordcount": "1120",
"publisher": {
"@type": "Organization",
"name": "TheAbbie",
"logo": {
"@type": "ImageObject",
"url": "https://theabbie.github.io/files/logo.png"
}
},
"url": "https://theabbie.github.io/Doodle-Board",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://theabbie.github.io/Doodle-Board"
},
"datePublished": "2020-10-31T14:44:10.857Z",
"dateCreated": "2020-10-31T14:44:10.857Z",
"dateModified": "2020-10-31T14:44:10.857Z",
"description": "An SVG Doodle Board to build smooth SVG doodles in browser",
"articleBody": "An SVG Doodle Board to build smooth SVG doodles in browser"
},{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://theabbie.github.io"
},{
"@type": "ListItem",
"position": 2,
"name": "Blog",
"item": "https://theabbie.github.io/blog"
},{
"@type": "ListItem",
"position": 3,
"name": "Doodle Board"
}]
},{
"@context": "https://schema.org",
"@type":"SiteNavigationElement",
"name":["home","blog"],
"url":["https://theabbie.github.io/","https://theabbie.github.io/blog/"]
}]
</script>
</head>
<body>
<svg xmlns='http://www.w3.org/2000/svg' style="height: 100%; width: 100%; position: fixed; background: rgb(42,37,43);touch-action: none;">
<path d="" style="stroke: rgb(221,172,39); stroke-width: 5px; fill: none;" />
</svg>
</body>
<script>
var wid = window.innerWidth;
var hit = window.innerHeight;
document.body.style.margin="0 0 0 0";
var svg = document.querySelector("svg");
var art = document.querySelector("path");
function draw(e) {
var x = Math.floor(e.touches?e.touches[0].clientX:e.x);
var y = Math.floor(e.touches?e.touches[0].clientY:e.y);
if (e.type=="touchstart" || e.type=="mousedown") {
art.setAttribute('d', art.getAttribute('d') ' M' x ' ' y);
}
else {
art.setAttribute('d', art.getAttribute('d') ' L' x ' ' y);
}
}
svg.addEventListener("touchstart",draw);
svg.addEventListener("touchmove",draw);
svg.addEventListener("mousedown",draw);
svg.addEventListener("mousemove",draw);
/*svg.addEventListener("touchend", function(e) {
svg.removeEventListener("touchstart",draw);
});*/
svg.addEventListener("mouseup", function(e) {
svg.removeEventListener("mousedown",draw);
});
window.onerror = function (errorMsg, url, lineNumber) {
alert('Error: ' errorMsg ' Script: ' url ' Line: ' lineNumber);
}
</script>
</html>