|
| 1 | +<!-- Dedicated to God the Father --> |
| 2 | +<!-- All Rights Reserved Christopher Andrew Topalian Copyright 2000-2025 --> |
| 3 | +<!-- https://github.com/ChristopherTopalian --> |
| 4 | +<!-- https://github.com/ChristopherAndrewTopalian --> |
| 5 | +<!-- index.html --> |
| 6 | + |
| 7 | +<html> |
| 8 | +<head> |
| 9 | +<title> index </title> |
| 10 | + |
| 11 | +<style> |
| 12 | + |
| 13 | +body |
| 14 | +{ |
| 15 | + background-color: rgb(0, 0, 0); |
| 16 | + font-family: Arial; |
| 17 | + color: rgb(255, 255, 255); |
| 18 | +} |
| 19 | + |
| 20 | +</style> |
| 21 | + |
| 22 | +<script> |
| 23 | + |
| 24 | +// shortcuts.js |
| 25 | + |
| 26 | +function ge(whichId) |
| 27 | +{ |
| 28 | + let result = document.getElementById(whichId); |
| 29 | + return result; |
| 30 | +} |
| 31 | + |
| 32 | +function ce(whichType) |
| 33 | +{ |
| 34 | + let result = document.createElement(whichType); |
| 35 | + return result; |
| 36 | +} |
| 37 | + |
| 38 | +function ba(whichElement) |
| 39 | +{ |
| 40 | + let result = document.body.append(whichElement); |
| 41 | + return result; |
| 42 | +} |
| 43 | + |
| 44 | +function cl(whichMessage) |
| 45 | +{ |
| 46 | + let result = console.log(whichMessage); |
| 47 | + return result; |
| 48 | +} |
| 49 | + |
| 50 | +function ct(whichText) |
| 51 | +{ |
| 52 | + let result = document.createTextNode(whichText); |
| 53 | + return result; |
| 54 | +} |
| 55 | + |
| 56 | +function gr(whichId) |
| 57 | +{ |
| 58 | + let result = ge(whichId).getBoundingClientRect(); |
| 59 | + return result; |
| 60 | +} |
| 61 | + |
| 62 | +//----// |
| 63 | + |
| 64 | +// Dedicated to God the Father |
| 65 | +// All Rights Reserved Christopher Andrew Topalian Copyright 2000-2025 |
| 66 | +// https://github.com/ChristopherTopalian |
| 67 | +// https://github.com/ChristopherAndrewTopalian |
| 68 | +// https://sites.google.com/view/CollegeOfScripting |
| 69 | + |
| 70 | +//-// |
| 71 | + |
| 72 | +function makeAppLink() |
| 73 | +{ |
| 74 | + let theLink = 'CATopalian_HTML_JavaScript_Editor.html'; |
| 75 | + |
| 76 | + let mainDiv = ce('div'); |
| 77 | + mainDiv.style.display = 'flex'; |
| 78 | + mainDiv.style.flexDirection = 'column'; |
| 79 | + mainDiv.style.margin = 10 + 'px'; |
| 80 | + ba(mainDiv); |
| 81 | + |
| 82 | + //-// |
| 83 | + |
| 84 | + let instructions = ce('div'); |
| 85 | + instructions.textContent = 'Click on the Link Below to Open the Application'; |
| 86 | + mainDiv.append(instructions); |
| 87 | + |
| 88 | + //-// |
| 89 | + |
| 90 | + let appLink = ce('a'); |
| 91 | + appLink.href = theLink; |
| 92 | + appLink.textContent = 'Start Application'; |
| 93 | + appLink.style.fontSize = 50 + 'px'; |
| 94 | + appLink.style.fontWeight = 'bold'; |
| 95 | + mainDiv.append(appLink); |
| 96 | +} |
| 97 | + |
| 98 | +function whenLoaded() |
| 99 | +{ |
| 100 | + makeAppLink(); |
| 101 | +} |
| 102 | + |
| 103 | +</script> |
| 104 | + |
| 105 | +</head> |
| 106 | + |
| 107 | +<body onload = 'whenLoaded();'> |
| 108 | + |
| 109 | +</body> |
| 110 | + |
| 111 | +</html> |
| 112 | + |
0 commit comments