-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
51 lines (40 loc) · 1.3 KB
/
script.js
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
function myHome() {
window.open("../index.html");
}
function myblog(){
window.open("/sites/javascript.html");
}
function myScript() {
window.open("/sites/javascript.html");
}
function myCourse(){
window.open("/sites/courses.html");
}
function myWebdev(){
window.open("/sites/web_development.html");
}
function next(){
window.open('#next');
}
function learn_javascript(){
window.open('/sites/web_development.html#next')
}
function donate(){
var link1 = 'https://upi-linkpe.netlify.app/index.html?pa=mohitlab@fam&pn=Mohit&cu=INR';
var link2 = 'upi://pay?pa=mohitlab@fam&pn=Mohit&cu=INR';
// Open the links in new tabs or windows
window.open(link1, '_blank');
window.open(link2);
}
const iframe = document.getElementById('resizableIframe');
// Set the initial width based on the screen width
const initialScreenWidth = 100; // Change this value based on your needs
const initialIframeWidth = 0.7 * initialScreenWidth;
// Set the initial width of the iframe
iframe.style.width = `${initialIframeWidth}vw`;
// Update the iframe width on window resize
window.addEventListener('resize', () => {
const screenWidth = window.innerWidth;
const iframeWidth = (0.7 * screenWidth);
iframe.style.width = `${iframeWidth}px`;
});