-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage_converter.html
31 lines (27 loc) · 1022 Bytes
/
image_converter.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
<!DOCTYPE html>
<html lang = "en">
<head>
<header>Changing Contrast Mode</header>
</head>
<canvas id="canvas"></canvas>
<body>
<h1>Turn on high contrast mode?</h1>
<button onclick id = "clicked()">Yes</button>
<button onclick id = "cancled()">Cancel</button>
<div id="switchToFont"><a href="options.html">Switch to change font mode</a></div>
<script type = "text/javascript">
let currentWindow;
function clicked(){
var currentLocation = window.location
var imageArray = [] //to make an empty array
currentLocation.forEach(element => {
curURL = changeImage(element) // creates a new url for the altered element
changeURL(curURL) // gives the file the new url for element
});
}
function cancled(){
currentWindow.close()
}
</script>
</body>
</html>