Skip to content

Instantly share code, notes, and snippets.

View tkjaergaard's full-sized avatar

Thomas Kjærgaard tkjaergaard

View GitHub Profile
@tkjaergaard
tkjaergaard / breadcrumb.xml
Created January 27, 2012 08:10
breadcrumb.xml
<?xml version="1.0" encoding="utf-8"?>
<NavigationTree>
<Settings>
<Pageview ID="14" AreaID="1" MenuText="Gruppevisning" Title="gruppevisning" NavigationName="Breadcrumb" />
<GlobalTags>
<Global.Server.Date>27-01-2012</Global.Server.Date>
<Global.Server.Date.Day>27</Global.Server.Date.Day>
<Global.Server.Date.Hour>8</Global.Server.Date.Hour>
<Global.Server.Date.Minute>44</Global.Server.Date.Minute>
<Global.Server.Date.Month>1</Global.Server.Date.Month>
;jQuery(function($){
var maxHeight = 800,
total = 0;
// Du bør overvej at indsætte hver tabel som du vil loope igennem i en div som du kan bruge som
// placeholder til at indsætte det modificeret indhold.
$('.placeholder').each(function(){
$('table tr', $(this)).each(function(i, item){
@tkjaergaard
tkjaergaard / google-maps-round.html
Created February 17, 2012 12:38
Round Google Maps
<style>
#mask {
overflow: hidden;
border-radius: 50%;
position: relative;
z-index: 99;
height: 500px;
width: 500px;
border: 10px solid #000;
}
@tkjaergaard
tkjaergaard / index.html
Created February 28, 2012 21:58
Badminton App
<section class="wrap">
<article>
<div class="inner">
</div>
</article>
<article>
<div class="inner">
@tkjaergaard
tkjaergaard / app.js
Created February 28, 2012 22:30
badmintion app js
;(function($){
app = {
init: function(config) {
this.config = config;
$(config.wrapper).hide();
@tkjaergaard
tkjaergaard / style.css
Created February 28, 2012 22:49
Badminton App css
* {
margin:0;padding:0;
-moz-animation-duration: 3s;
-webkit-animation-duration: 3s;
animation-duration: 3s;
-webkit-animation-delay: 3s;
-moz-animation-delay: 3s;
animation-delay: 3s;
<?php
require_once('xml.php');
$url = "https://secure.quickpay.dk/api";
$protocol = 4;
$msgtype = 'recurring';
$merchant = '89898978';
$ordernumber = 1334227428;
@tkjaergaard
tkjaergaard / qp.php
Created May 10, 2012 11:14
QuickPay
<?php
$params = array(
'msgtype' => 'recurring',
'merchant' => 89898978,
'ordernumber' => 00002376630418111216,
'amount' => 400,
'currency' => 'DKK',
'autocapture' => 1,
'transaction' => 42309147,
@tkjaergaard
tkjaergaard / qp2.php
Created May 10, 2012 11:41
QuickPay2
<?php
require_once('quickpay.php');
$params = array(
'msgtype' => 'recurring',
'merchant' => 89898978,
'ordernumber' => '00002377010419105206',
'amount' => 400,
'currency' => 'DKK',
@tkjaergaard
tkjaergaard / vali.js
Created July 10, 2012 07:31
Jquery validate function
function validateStep()
{
var validated = true
$('[id*="step"]:visible .error').removeClass('error');
$('[id*="step"]:visible .required :input').each(function(){
if( $(this).val().length <= 0 || !$(this).is(':checked') )
{
$(this).parent().addClass('error');