This file contains hidden or 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 ng-app> | |
<div class="container-fluid"> | |
<div class="row-fluid"> | |
<div class="span12"> | |
<h1>Fork me on GitHub CSS</h1> | |
</div> | |
</div> | |
<div class="row-fluid"> | |
<blockquote>If you have some demo of some code which you are storing/sharing on GitHub, this codepen containes a codepattern for getting the Github banner as you can see it here in the top right.</blockquote> |
This file contains hidden or 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
Code to monitor if an iPaper is being viewed in a Dynamicweb soloution. | |
You can use CSS to add/hide CSS based features depending of the state of the iPaper being viewed or not. | |
Requires jQuery | |
(function($, window, undefined) { | |
// This code will add a class "showipaper" if an ipaper is being viewed | |
if (document.location.href.toLowerCase().indexOf('&showipaper')!=-1) { | |
$('html').addClass('showipaper'); | |
}; |
This file contains hidden or 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
s = 'http://fonts.googleapis.com/css?family=Orienta'; | |
l = '<link href="'+s+'" rel="stylesheet" type="text/css">'; | |
c = '@import url('+s+');' | |
j = (!!!prompt('Style: [l]ink or [C]SS?', 'C').toUpperCase().indexOf('L')) ? l : c; | |
prompt('Here you go font\nOrienta:', j); | |
Bookmarklet: | |
javascript:(function() {s="http://fonts.googleapis.com/css?family=Orienta";l='<link href="'+s+'" rel="stylesheet" type="text/css">';c="@import url("+s+");";j=!!!prompt("Style: [l]ink or [C]SS?","C").toUpperCase().indexOf("L")?l:c;prompt("Here you go font\nOrienta:",j)})() |
This file contains hidden or 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 comments = []; | |
var currentDate, aPersons=[], iPeople = 0; | |
var one_day=1000*60*60*24 | |
var iDays = 0; | |
var today; | |
var sHTML = '<h6>'+jQuery('.item').text()+'</h6><div class="dialogue">'; | |
function add(s, gone, person, date) { | |
var className= person.replace(/[ æøåÆØÅ]/ig, '');; | |
if (typeof aPersons[className]==='undefined') { | |
aPersons[className] = 1; |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-16"?> | |
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<!-- http://www.java2s.com/Code/XML/XML-Schema/Attributebasedonsimpletypewithrestrictionandenumeration.htm --> | |
<xs:element name="items"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="item"> | |
<xs:complexType> |
This file contains hidden or 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 QueryStringSettings = { | |
selector: '[ng-model]:not([type="checkbox"])', | |
doneCallback: null, | |
set: function() { | |
var h = ''; | |
[].forEach.call(document.querySelectorAll(this.selector), function(e) { | |
h += ((h !== '') ? '/' : '') + e.id + '=' + e.value; | |
}); | |
document.location.hash = h; | |
if (this.doneCallback!==null) { |
This file contains hidden or 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
javascript:if (!!!window.jQuery) {var d=document;var s=d.createElement('script');s.src='http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js';d.body.appendChild(s);void(alert('added jQuery 1.7.2'))}else {;void(alert('allready using jQuery '+jQuery.fn.jquery))} |
This file contains hidden or 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
<script type="text/javascript"> | |
(function() { | |
var div = document.createElement('div'); | |
div.innerHTML = '<!--[if IE]><i></i><![endif]-->'; | |
var isIE = (div.getElementsByTagName('i').length === 1); | |
var areas = document.getElementsByTagName('area'); | |
if (areas.length>0 && (isIE)) { | |
function removeBorder(e) { | |
this.blur(); |