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
// 12 July 2020 | |
// prompted by Cory House tweet | |
// @see https://twitter.com/housecor/status/1282375519481323520 | |
function omit(array, descriptor) { | |
// Return the input if it's not an array, or if the descriptor is not an Object. | |
if (!Array.isArray(array) || descriptor !== Object(descriptor)) { | |
return array; | |
} | |
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
angular.module('utils.filters', []) | |
.filter('removeAccents', removeAccents); | |
function removeAccents() { | |
return function (source) { | |
var accent = [ | |
/[\300-\306]/g, /[\340-\346]/g, // A, a | |
/[\310-\313]/g, /[\350-\353]/g, // E, e | |
/[\314-\317]/g, /[\354-\357]/g, // I, i | |
/[\322-\330]/g, /[\362-\370]/g, // O, o |
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
<nav class="nav-collapse"> | |
<ul class="nav-collapse"> | |
<li><a href="#">Home</a></li> | |
<li><a href="#">Bilder</a></li> | |
<li><a href="#">Rezepte</a></li> | |
<li><a href="#">Blog</a></li> | |
</ul> | |
<a href"#" id="pull">Menu</a> | |
</nav> |
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 | |
$tempCSS = $HTTP_GET_VARS["cssfile"]; | |
if ($tempCSS != "") { | |
$loadCSS = $tempCSS; | |
} else { | |
/* sets a default CSS file if no querystring specified */ | |
$loadCSS = "default.css"; | |
}; | |
$currentDesign = $loadCSS; |
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
p { line-height: 1.2; | |
background-image: linear-gradient(rgba(0,0,0,0.3) 1px, transparent 1px); | |
background-size: 100% 1.2em; | |
background-position: 0 0.8; | |
font-size: 170%; | |
padding: 1em; | |
background-origin: content-box; | |
} |
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).load(function(){ | |
var images = ['bg1', 'bg2', 'bg3']; | |
var imageRandom = Math.floor( Math.random() * images.length ); | |
var imagesUrl = 'url(../img/' + images[imageRandom] + '.jpg)'; | |
$('body').css('background-image', imagesUrl); | |
}); |
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
body { | |
background: #ccc51c; | |
min-height: 100%; | |
} | |
h1 { | |
position: absolute; | |
left: 50%; | |
margin-left: -1.9em; | |
color: hsla(0,0%,100%,.3); |
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
/*Container*/ | |
.container{ | |
width:820px; | |
margin:30px auto; | |
padding:25px; | |
min-height:400px; | |
height:auto; | |
} | |
.container h2 { margin-top:30px;} |
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
img{ | |
min-width: 100%; | |
height: auto; | |
} | |
.content{ | |
position: absolute; | |
top: 0; | |
left: 0; | |
bottom: 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
var markers = [ | |
['Bondi Beach', -33.890542, 151.274856], | |
['Coogee Beach', -33.923036, 151.259052], | |
['Cronulla Beach', -34.028249, 151.157507], | |
['Manly Beach', -33.80010128657071, 151.28747820854187], | |
['Maroubra Beach', -33.950198, 151.259302] | |
]; | |
function initializeMaps() { | |
var myOptions = { |
NewerOlder