Project has moved to github
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
/** | |
* =================================================================================== | |
* @name CssImageCollect | |
* @version 1 | |
* @description a javascript css-image preloader | |
* @author Thomas Appel, mail(at)thomas-appel(dot)com | |
* | |
* released under the MIT licence | |
* copyright © 2011 Thomas Appel, thomas-appel.com | |
* |
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
$(document).ready(function(){ | |
var cssImages = ['path/to/image1.png','path/to/image2.jpg','path/to/image3.gif'], | |
myElement = $('myElement'); | |
// bind eventlistener to one jquery object | |
myElement.bind('assetsready',function(){ | |
// do awesome stuff | |
}); | |
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
(function ($, Symphony, window, undefined) { | |
function MultilingualField(field) { | |
this.field = field; | |
this.init(); | |
} | |
MultilingualField.prototype = { | |
init: function () { | |
var self = this, |
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
<data> | |
<entry>Text</entry> | |
<entry>Text</entry> | |
<entry>Text</entry> | |
<entry>Text</entry> | |
<entry>Text</entry> | |
<entry>Text</entry> | |
<entry>Text</entry> | |
<entry>Text</entry> | |
<entry>Text</entry> |
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
(function () { | |
var objStr = '[object Object]'; | |
//var arrStr = '[object Array]'; | |
//var isArray = function (a) { | |
// return Object.prototype.toString.call(a) === arrStr; | |
//}; | |
var isObject = function (o) { | |
return Object.prototype.toString.call(o) === objStr; |
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
<data> | |
<hello>paste your xml here</hello> | |
<goodbye></goodbye> | |
<array> | |
<item></item> | |
<item> | |
<name>object name</name> | |
</item> | |
<item> | |
<name></name> |
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
<data> | |
<params> | |
<root>http://example.com</root> | |
<ds-toc-projects> | |
<item handle="project1">project1</item> | |
<item handle="project2">project2</item> | |
<item handle="project3">project3</item> | |
</ds-toc-projects> | |
<ds-toc-whatever> | |
<item handle="whatever1">whatever1</item> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" extension-element-prefixes="exsl" version="1.0" > | |
<xsl:import href="../utilities/xml2json.xsl"/> | |
<xsl:template match="data"> | |
<xsl:variable name="event"> | |
<xsl:element name="{events/post-comment/@result}"> | |
<xsl:copy-of select="events/post-comment/*""/> | |
</xsl:element> |
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
<data> | |
<pants> | |
<entry> | |
<content>Test 1</content> | |
</entry> | |
<entry> | |
<content>Test 2</content> | |
</entry> | |
<entry> | |
<content>Test 3</content> |
OlderNewer