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
-- Dynamicweb CMS sql scripts | |
-- By Sten Hougaard, [email protected] | |
FOR XML AUTO | |
-- Opdateret | |
---------------------------------------------------------e------------------------------ | |
-- Accessuser/page | |
--------------------------------------------------------------------------------------- | |
-- Find pages modified by non-admins on given areaid |
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 toXPath(s) { | |
s = s.replace(/[<>]/ig, ''); | |
var iAtt = s.indexOf(' '); | |
var aAtt = s.substring(iAtt+1).split(' '); | |
var sTag = s.substr(0, iAtt); | |
for(var i=0; i<aAtt.length; i++) { | |
aAtt[i] = '@'+aAtt[i].replace(/"/ig, '\'')+((i!=aAtt.length-1) ? ' ' : ''); | |
}; | |
var a = ''; | |
for(var i=0; i<aAtt.length;i++) { |
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-8"?> | |
<!DOCTYPE xsl:stylesheet [<!ENTITY netsi "[email protected]">]> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"> | |
<xsl:output method="xml" indent="no"/> | |
<xsl:template match="/"> | |
<h1>&netsi; bliver til "&netsi;"</h1> |
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-8"?> | |
<!-- https://gist.github.com/raw/2882142/02058e354cc9eb8d283b57147d6c1b6aadac7fb7/variousVIASnippets.xslt --> | |
<!-- VARIOUS VIA XSLT SNIPPETS --> | |
<!-- Sten Hougaard, [email protected] - 2012-06-06 --> | |
<!-- On module snippets --> | |
<xsl:key name="QueryString" match="//RequestContent/QueryString/Entry" use="@Name"/> | |
<xsl:key name="request" match="//RequestContent/ServerVariables/Entry" use="@Name"/> | |
<!-- On page snippets --> |
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
Netsi1964 HTML SNIPPETS | |
<!-- Simpel default/placeholder value for textarea, require jQuery --> | |
<textarea name="" id="" cols="30" rows="10" placeholder="test">test</textarea> | |
<script type="text/javascript"> | |
$(function() { | |
var test = document.createElement('textarea'); | |
if (!!!('placeholder' in test)) { | |
jQuery('textarea').focus(function() { | |
var $this = $(this); | |
if ($.trim($this.val())===$this.attr('placeholder')) { |
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
<html> | |
<head> | |
<title>Playing around with CSS3- building a quote feature</title> | |
<meta charset="utf-8" /> | |
<style type="text/css"> | |
.quote { | |
background-color: rgba(0, 0, 0, 0.1); | |
font-size: 140%; | |
margin: 13px; | |
padding: 15px; |
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
<xsl:variable name="translationfile" select="document(concat('http://',/Template/GlobalTags/Global.Request.Host,'/Files/Templates/Translations.xml'))" /> | |
<xsl:variable name="currentlanguage" select="/Template/GlobalTags/Global.Area.LongLang" /> | |
<xsl:template name="translate"> | |
<xsl:param name="translationkey" /> | |
<xsl:param name="defaulttranslation" /> | |
<xsl:choose> | |
<xsl:when test="$translationfile/translations/key[@name=$translationkey]"><xsl:value-of select="$translationfile/translations/key[@name=$translationkey]/translation[@culture=string($currentlanguage)]" /></xsl:when> | |
<xsl:otherwise><xsl:value-of select="$defaulttranslation" /></xsl:otherwise> |
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
/**********************************************************/ | |
/* Boilerplate CSS Media Queries */ | |
/* http://www.paulund.co.uk/boilerplate-css-media-queries */ | |
/* boilerplateCSSMediaQueries.css */ | |
/**********************************************************/ | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-width : 320px) | |
and (max-width : 480px) { |
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
SELECT [name] AS [Column Name] | |
FROM syscolumns | |
WHERE id = (SELECT id FROM sysobjects WHERE [Name] = 'page') | |
AccessUserID | |
AccessUserParentID | |
AccessUserUserName | |
AccessUserPassword | |
AccessUserName | |
AccessUserDepartment |
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 ng-app> | |
<head> | |
<meta charset="utf-8" /> | |
<script src="http://code.angularjs.org/angular-1.0.1.min.js"></script> | |
<script type="text/javascript"> | |
var BorderRadius = function($scope) { | |
$scope.borders = [ | |
{'value':'top'}, | |
{'value':'right'}, |