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> | |
var uren; | |
var minuten; | |
function verstuur ( e ) { | |
if ( ! e.preventDefault ) | |
return false; | |
e.preventDefault(); |
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
function getOneTicket($id) { | |
$q = $this->db->query('SELECT * FROM tickets WHERE id = '.$id); | |
if($q->num_rows() > 0) { | |
foreach($q->result() as $row) { | |
$data[] = $row; | |
$orga_id = $row->organisatie_id; | |
} | |
return $data; | |
} |
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
<!DOCTYPE html> | |
<html lang="nl"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Plakkende Div</title> | |
<script> | |
window.onload = function () { |
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
$(document).ready(function() { | |
$("a[name]").css("background", "#eee" ); | |
$("a[href*='stefanjonker']").css("color", "#FF0000"); | |
$('#faq').find('dd').hide().end().find('dt').click(function() { | |
$(this).next().slideToggle(); | |
}); | |
}); | |
$(document).ready(function() { |
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
<!doctype html> | |
<html> | |
<head> | |
<metacharset="utf-8"> | |
<title>Demo</title> | |
<style> | |
th.headerSortUp { | |
background-color: #3399FF; | |
} |
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
<head> | |
<link rel="import" href="path/to/x-foo.html"> | |
</head> | |
<body> | |
<x-foo></x-foo> | |
<script> | |
// http://www.polymer-project.org/docs/polymer/polymer.html#polymer-ready | |
window.addEventListener('polymer-ready', function(e) { | |
var xFoo = document.querySelector('x-foo'); |
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
[].forEach.call( | |
document.querySelectorAll(''), | |
function (el) { | |
console.log(el); | |
} | |
); |
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 element = document.querySelector('custom-element'); | |
element.innerHTML = '<style> :host(.class) { ... } </style>'; |
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 svg = document.querySelector( "svg" ); | |
var svgData = new XMLSerializer().serializeToString( svg ); | |
var canvas = document.createElement( "canvas" ); | |
var ctx = canvas.getContext( "2d" ); | |
var img = document.createElement( "img" ); | |
img.setAttribute( "src", "data:image/svg+xml;base64," + btoa( svgData ) ); | |
img.onload = function() { |
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
require 'fileutils' | |
require 'etc' | |
if ENV['USER'] != 'root' | |
raise "Script needs root-access to write in some folders." | |
else | |
print "Name of the website: " | |
siteName = gets.chomp() | |
print "Owner of the site in the Apache-folder (Default: \"#{Etc.getlogin})\": " |
OlderNewer