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 | |
// Task: Design a function that takes two array-parameters containing sorted lists and merges them into one array, | |
// in a way that results into a sorted array containing all elements of the original two lists. | |
$first_array = [1, 2]; | |
$second_array = [4, 3, 11]; |
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
var now = new Date(); | |
var all_days = [].slice.call(document.querySelectorAll('dd')); | |
var days = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday']; | |
var today = days[ now.getDay() ]; | |
all_days.forEach(function(node) | |
{ | |
var text = node.dataset.open; | |
if(text != undefined) | |
{ | |
if(node.dataset.open.indexOf(today) != -1){ |
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
<amp-iframe | |
width="1200" | |
height="500" | |
layout="intrinsic" | |
sandbox="allow-scripts allow-same-origin allow-popups" | |
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d380559.8849917613!2d-88.01093622197548!3d41.82562576585843!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x880e2c3cd0f4cbed%3A0xafe0a6ad09c0c000!2sChicago%2C+IL!5e0!3m2!1sen!2sus!4v1560979429160!5m2!1sen!2sus" > | |
</amp-iframe> |
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 amp-custom=""> | |
<?php readfile(getcwd() ."/styles/css/styles.css"); ?> | |
</style> |
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 | |
/* | |
Function siteURL() courtesy of Chris McKee - https://gist.github.com/ChrisMcKee/1284052 | |
Get sute URL with protocol (http or https) | |
*/ | |
function siteURL() | |
{ | |
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' | |
|| $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://"; | |
$domainName = $_SERVER['HTTP_HOST']; |
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
<form | |
action-xhr="/scripts/contact_process.php" | |
verify-xhr="/scripts/contact_process.php" | |
method="post" | |
class="detailed_contact_form " | |
custom-validation-reporting="show-all-on-submit" | |
> | |
<fieldset class="user-valid valid"> | |
<legend> | |
<span> Schedule an appointment</span> |
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
<button on="tap:AMP.print()">Print Page</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
<?php | |
/* | |
Function siteURL() courtesy of Chris McKee - https://gist.github.com/ChrisMcKee/1284052 | |
Get sute URL with protocol (http or https) | |
*/ | |
function siteURL() | |
{ | |
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' | |
|| $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://"; | |
$domainName = $_SERVER['HTTP_HOST']; |
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
<form | |
action-xhr="https://fabulousnewwebsite.com/scripts/subscriber_process.php" | |
verify-xhr="https://fabulousnewwebsite.com/scripts/subscriber_process.php" | |
method="post" | |
custom-validation-reporting="show-all-on-submit" | |
class="mb3" | |
> | |
<label class="center"> | |
Email: | |
<input type="text" |
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
{ | |
"bookendVersion": "v1.0", | |
"shareProviders": [ | |
"facebook", | |
"twitter", | |
"email" | |
], | |
"components": [ | |
{ | |
"type": "heading", |
OlderNewer