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
<?php | |
/* Database connection to test database */ | |
$connection = mysql_connect('localhost','wp_user','wp_password'); | |
if (!$connection) | |
{ | |
die('Could not connect: ' . mysql_error()); | |
} | |
mysql_select_db("wordpres",$connection); | |
?> | |
<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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<!-- The page title that is displayed in the top of the browser --> | |
<title></title> | |
<!-- Meta content describes your page and is indexed by search engines such as Google --> | |
<meta name="description" content="JS High Order function"> | |
<meta name="author" content="Mark Atherton"> |
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> | |
<head> | |
<title>Event creation form</title> | |
</head> | |
<!-- All strings - These are mandatory fields title, start_date, end_date, timezone. The description is optional but guess we would require --> | |
<body> | |
<!-- A form to create an event and passes it's variables to event_creator.php --> | |
<form method="post" action="event_creator.php"> | |
<fieldset> |
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
radioChecked = () => { | |
var allRadios = document.querySelectorAll('input[type="radio"]'); | |
allRadios.forEach(r => { | |
r.addEventListener('mouseup', function(e) { | |
if (r.checked) { | |
setTimeout(() => { | |
r.checked = false; | |
}, 0); | |
} | |
}); |
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
$(window).resize(function() { | |
var captions = $('.module-main-links .caption'), | |
height = 0; | |
captions.each(function() { | |
var captionHeight = $(this).outerHeight(); | |
if (captionHeight > height) { | |
height = captionHeight; | |
} | |
}); |
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> | |
<link rel="stylesheet" href="custom-booking-search.css"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> | |
</script> | |
<script> | |
$(document).ready(function(){ | |
$(document).ajaxStart(function(){ | |
$("#plane-border").css("display","block"); |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<!-- The page title that is displayed in the top of the browser --> | |
<title>The HTML5 Herald</title> | |
<!-- Meta content describes your page and is indexed by search engines such as Google --> | |
<meta name="description" content="The HTML5 BASE template"> |
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
MYPATH=$1 | |
find "$MYPATH" -name *.jpg -exec basename {} \; > /tmp/patterns | |
find "$MYPATH" -name *.jpeg -exec basename {} \; >> /tmp/patterns | |
find "$MYPATH" -name *.png -exec basename {} \; >> /tmp/patterns | |
find "$MYPATH" -name *.gif -exec basename {} \; >> /tmp/patterns | |
find "$MYPATH" -name *.css -exec basename {} \; >> /tmp/patterns | |
find "$MYPATH" -name *.js -exec basename {} \; >> /tmp/patterns | |
find "$MYPATH" -name *.php -exec basename {} \; >> /tmp/patterns |
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> | |
<head> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script> | |
<link rel="stylesheet" href="../css/ui.css"> | |
</head> | |
<body> | |
<div id="tempload"></div> | |
<button id="btntest" name="btntest">test</button> |
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 toggle(id) { | |
var element = document.getElementById(id); | |
if(element.style.display == "block") | |
hide(id); | |
else | |
show(id); | |
} |
NewerOlder