-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path6.html
75 lines (71 loc) · 2.36 KB
/
6.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
<html lang="sa">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>नर्मदादर्शनकथा</title>
</style>
</head>
<body onload="f1()" style="overflow-y:scroll;font-size:normal;white-space: nowrap;color:white;margin:0 0 0 0;">
<canvas height="0" id="canvas"></canvas>
<div style="text-align:center;margin:0.5em 0.5em 0.5em 0.5em;">
<div style="margin:auto;max-width:32em;">
<div id="d1" style="font-weight:700;font-size:xx-large;">नर्मदादर्शनकथा</div>
</div>
<div style="margin:auto;max-width:32em;">
<div id="d2" style="font-size:x-large;">नर्मदादर्शनकथा</div>
</div>
</div><p>
<div style="margin:auto;max-width:32em;">
<img id="hp" src="1-1.png" style="background-color:white;max-height:100vh;width:100%;object-fit:contain;" onclick="img1()"></img>
</div>
<div style="text-align:center;margin:0.5em 0.5em 0.5em 0.5em;">
<div id="d3" style="font-size:normal;font-weight:900;">नर्मदादर्शनकथा</div>
</div>
<script src="3.js"></script>
<script src="8.js"></script>
<script>
var E=document.body.offsetWidth;
window.addEventListener('resize', function(event){
if(E!=document.body.offsetWidth)
{
E=document.body.offsetWidth;
f1();
}
});
var d=new Array();
var j;
for(j=1;j<=3;j++)
d.push(document.getElementById("d"+j));
var Img1=document.getElementById("hp");
function f1()
{
//if( (!document.fonts.check('700 large Martel'))||(!document.fonts.check('normal large Martel'))||(!document.fonts.check('900 large Martel')) ){setTimeout(f1,0);return;}
document.fonts.ready.then(function(){
Img1.src="1-1.png";
console.log("f1");
S8(d[1-1],("न र्म दा द र्श न क था").split(' '));
S8(d[2-1],s.concat(s2));
S8(d[3-1],("त्व दी य पा द प ङ्क ज न्न मा मि दे वि न र्म दे ।").split(' '));
Img1.src="1.jpg";
document.body.style.color="black";});
}
function f45()
{
var t0=performance.now();
var i;
for(i=0;i<s.length;i++)
getTextWidth(s[i],"");
var t1=performance.now();
for(i=0;i<s.length;i++)
getTextWidth(s[i],"Martel");
var t2=performance.now();
console.log((t1-t0)+" , "+(t2-t1));
}
function img1()
{
//window.scrollTo(0, Img1.offsetTop-(innerHeight-Img1.height)/2);
}
</script>
<script src="app.js"></script>
</body>
</html>