Created
October 22, 2016 22:16
-
-
Save slice/b31606afc704a04b0e5d21fe8e0d472a to your computer and use it in GitHub Desktop.
More code from 2013.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App Opener- Tidy | |
<html> | |
<head> | |
<title>App Opener | iPhone</title> | |
</head> | |
<body style="font-family:Courier;"> | |
<script> | |
document.title="App Opener | "+brw | |
brw=navigator.platform | |
if (brw!=="iPod" && brw!=="iPhone" && brw!=="iPad") {alert("Sorry, but your device is not supported. You are currently using a/n"+brw+".")} | |
</script> | |
<p> | |
Enter the app name below and tap Launch. If that doesn't work, try the app name without spaces and the first letter lowercase. | |
</p> | |
<input type="text" id="atl"> | |
<button type="submit" id="lb" onclick="launchApp()"> | |
Launch | |
</button> | |
<style> | |
#lb { | |
background-color:LightSkyBlue; | |
font-family:Arial; | |
padding:2px | |
} | |
#atl { | |
background-color:LightSkyBlue; | |
color:Black; | |
} | |
</style> | |
<script> | |
function launchApp() { | |
app=document.getElementById("atl").value | |
window.location=app+"://open" | |
} | |
</script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body style="font-family:Courier" background-color:LightBlue;> | |
<h1 class="header" id="mheader"> | |
- Using CSS - | |
</h1> | |
<p class="parag"id="mp_01"> | |
CSS is used to modify on how HTML elements are displayed. The CSS code is inbetween the <style> tags. It can be used to modify font faces, change padding, and add animations. | |
</p> | |
<h2 class="header" id="mheader_02"> | |
Why should I use CSS? | |
</h2> | |
<p class="parag"> | |
You should use CSS because it can make your webpage beautiful. e.x Animations, Gradiants, Colors, Formatted Tables, etc. | |
</p> | |
<h2 class="header"> | |
FAQ | |
</h2> | |
<p class="parag"> | |
Q: Do I need to install anything? | |
A: No.<br><br> | |
Q: What does CSS stand for? <br> | |
A: Cascading Style Sheet.<br><br> | |
Q: Do I have to use CSS externally? | |
A: No. It can be used inbetween a <style> tag, inside a tag (attribute 'style'), and in an external .css file. <br><br> | |
Q: Which browsers does CSS support? | |
A: Mostly major browsers: Internet Explorer, Chrome, Opera, and Safari.<br><br> | |
</p> | |
</body> | |
<style> | |
.header | |
{ | |
color:Orange; | |
} | |
.parag | |
{ | |
color:Gray; | |
background-color:LightGray; | |
} | |
</style> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LeavePageStayPage- Tidy | |
<html> | |
<button id="eb" class="db" onclick="LeaveP()"> | |
Leave Page | |
</button> | |
<button id="sb" class="db" onclick="StayP()"> | |
Stay on Page | |
</button> | |
<style> | |
.db { | |
border-style:solid; | |
background-color:LightSkyBlue; | |
font-family:Courier; | |
} | |
</style> | |
<script> | |
alert('Make sure popups are disabled!') | |
// FUNCTIONS AND SUCH | |
function LeaveP() | |
{ | |
alert('Goodbye!') | |
window.close() | |
window.location="about:blank" | |
} | |
function StayP() | |
{ | |
alert('Thanks for staying!') | |
} | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment