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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
td { | |
//border: 1px solid black; | |
} | |
body { | |
font-family: arial; |
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
<!DCOTYPE html> | |
<head> | |
<title>Test</title> | |
<script src="js/jquery-1.11.3.min.js"></script> | |
<script> | |
$(document).ready(function () { | |
document.getElementById('div1').innerHTML = "Hello"; | |
$('#div2').html("Hello"); |
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
<!DCOTYPE html> | |
<head> | |
<title>Contacts</title> | |
<script src="js/contact.js"></script> | |
<script src="js/jquery-1.11.3.min.js"></script> | |
<script> | |
function restoreUI() { | |
var divList = document.getElementById('divList'); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Cash Register</title> | |
<script> | |
function calculateChange() { | |
var purchase = document.getElementById('purchase'); | |
var cash = document.getElementById('cash'); | |
var change = document.getElementById('change'); |
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
package edu.au.scitech.sc2101; | |
import java.util.Arrays; | |
public class SortingUtility { | |
public static void quickSort(int[] arr, int startIndex, int endIndex) { | |
System.out.println( Arrays.toString( arr ) ); | |
int pivotIndex = (startIndex + endIndex) / 2; |
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
<!DCOTYPE html> | |
<head> | |
<title>Test</title> | |
<script src="js/jquery-1.11.3.min.js"></script> | |
<script> | |
$(document).ready(function () { | |
/* | |
// dynamic-length record, delimiter |
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
<!DCOTYPE html> | |
<head> | |
<title>Test</title> | |
<script src="js/jquery-1.11.3.min.js"></script> | |
<script> | |
$(document).ready(function () { | |
/* | |
// dynamic-length record, delimiter |
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
<!DCOTYPE html> | |
<head> | |
<title>Test</title> | |
<script src="js/jquery-1.11.3.min.js"></script> | |
<script> | |
function reloadContact() { | |
// Load all contacts into div2 | |
console.log(localStorage.contactList); | |
// It could happen that localStorage.contactList has never been defined. |
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
<style> | |
#divCashReg { | |
float: left; | |
width: 300px; | |
} | |
#divDocket { | |
border: 1px dashed black; | |
width: 200px; | |
min-height: 200px; | |
margin-left: 300px; |
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
function calculateChange() { | |
var purchase = document.getElementById('purchase'); | |
var cash = document.getElementById('cash'); | |
var change = document.getElementById('change'); | |
var result = Number(cash.value) - Number(purchase.value); | |
console.log(result); | |
change.value = result; |
OlderNewer