Skip to content

Instantly share code, notes, and snippets.

View netsi1964's full-sized avatar

Sten Hougaard netsi1964

View GitHub Profile
/* This is a template command. */
CmdUtils.CreateCommand({
names: ["example"],
icon: "http://www.mozilla.com/favicon.ico",
description: "A short description of your command.",
help: "How to use your command.",
author: {name: "Your Name", email: "you@mozilla.com"},
license: "GPL",
homepage: "http://labs.mozilla.com/",
arguments: [{role: 'object', nountype: noun_arb_text}],
/* This is a template command. */
CmdUtils.CreateCommand({
names: ["links-on-page"],
icon: "http://www.netsi.dk/favicon.ico",
description: "Shows the no of links on current page",
help: "When you visit a page simple fire up <b>links-on-page</b> to see a count of links on current page.",
author: {name: "Sten Hougaard", email: "netsi1964@gmail.com"},
license: "GPL",
homepage: "http://www.netsi.dk/ubiquity",
preview: function preview(pblock, args) {
The idea of this Gist is to have a place to share code which has the aim to:
1. Add options to animate pop-up layers
For instance so that they fade in, slide out or... I wish to use jQuery library which is cross browser, rock solid and nice library
2. Add standard functionality which can be used in a standard way from Xara
3. Start to explore the HTML generated from Xara TOGETHER with other like minded persons across the web!
I am new to this sharein code so please be patience.
/Sten Hougaard
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<base href="http://sth.ecom.dev01.bleaudev.dk/files/html/bleau/" />
<title>Bleau Conversation Editor</title>
</head>
<body>
<style type="text/css">
body
{
@netsi1964
netsi1964 / jQueryAddGravatar.html
Created May 1, 2012 21:17
Add Gravatar using jQuery
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<style type="text/css">
body, footer {font-size: 100%; font-family: tahoma, sans-serif;}
.gravatar {float: left; text-align: center; }
.gravatar div {margin: 0px auto;}
.gravatar div a {display: block;}
@netsi1964
netsi1964 / html-vignetShadow.html
Created May 5, 2012 07:28
Adding a vignet shadow to images
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title> - jsFiddle demo</title>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<link rel="stylesheet" type="text/css" href="/css/normalize.css">
@netsi1964
netsi1964 / CSS3 Transition.html
Created May 6, 2012 22:08
Example of use of CSS3 Transition
<!doctype html>
<html lang="en">
<head>
<title>CSS3 Transition</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="css/style.css">
<style type="text/css">
body {font-size: 100%; font-family: tahoma, sans-serif;}
.example {height: 200px;}
@netsi1964
netsi1964 / SyncronVia-DocumentTemplate.xsd
Created May 8, 2012 07:44
Syncron VIA Document Template Schema
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Text">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Language" type="xs:string" use="optional" default="" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
/* ============================================================================================================================
== BUBBLE WITH AN ISOCELES TRIANGLE
** ============================================================================================================================ */
/* THE SPEECH BUBBLE
------------------------------------------------------------------------------------------------------------------------------- */
.triangle-isosceles {
position:relative;
@netsi1964
netsi1964 / splitStringToItems.xslt
Created May 9, 2012 21:05
XSLT split a string into items
<?xml version="1.0" encoding="utf-8"?>
<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:variable name="groups" select="'265, 256'" />
<xsl:template match="root">
<xsl:variable name="items">
<xsl:call-template name="splitStringToItems">