Class Definition AS3
package {
import flash.display.*;
import flash.net.*;
import flash.filters.*;
import flash.events.*;
import flash.geom.*;
public class Home extends MovieClip {
public function Home() {
}
}
}
jQuery open pdf in external window
// open pdf files in new window
$("a[@href$=pdf]").each(function() {
$(this).attr('target', '_blank');
});
Added to JS by Davy Van Den Bremt
jQuery open links in external window
// open links in external window
$("a[@href^=http]").each(function() {
if(this.href.indexOf(location.hostname) == -1) {
$(this).click(function(){window.open(this.href);return false;});
}
});
Added to JS by Davy Van Den Bremt
Basic Page Structure HTML 5
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="robots" content="" />
</head>
<body>
</body>
</html>
Added to HTML by Sven Hofmann
Drupal module info
; $Id$
name =
description = "The description of this module"
; Required core version (Drupal 6+; no effect in Drupal 5)
core = 6.x
; Package name (see //drupal.org/node/101009 for a list of names)
; package =
; PHP version requirement (Drupal 6+)
; php = 5.2
; Module dependencies (Drupal 6+ style)
; dependencies[] = mymodule
; dependencies[] = theirmodule
; Module dependencies (Drupal 5 style)
; dependencies = mymodule theirmodule
; For further information about configuration options, see
; - //drupal.org/node/101009 (Drupal 5)
; - //drupal.org/node/231036 (Drupal 6)
; Clip taken from TextMate Drupal bundle
Added to Drupal by Davy Van Den Bremt
Basic Page Structure XHTML 1.1 Valid
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "//www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="//www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><<**SelectionInsertionPlaceholder**>></title>
</head>
<body>
</body>
</html>
Add jquery in header
<script type="text/javascript" src="//www.google.com/jsapi"></script>
<script type="text/javascript">google.load("jquery", "1");</script>
Added to JS by Vayu Robins