window.navigator.doNotTrack
setting: "Send a ‘Do Not Track’ request with your browsing traffic"
return: [ "1" or null ]
<!DOCTYPE html> | |
<html<?php print $html_attributes; ?>> | |
<head> | |
<?php print $head; ?> | |
<title><?php print $head_title; ?></title> | |
<?php print $styles; ?> | |
<?php print $scripts; ?> | |
</head> | |
<body<?php print $body_attributes;?>> |
<!DOCTYPE html> | |
<html<?php print $html_attributes; ?>> | |
<head> | |
<?php print $head; ?> | |
<title><?php print $head_title; ?></title> | |
<?php print $styles; ?> | |
<?php print $head_scripts; ?> | |
</head> | |
<body<?php print $body_attributes;?>> |
/** | |
* @file demo JS. | |
* jQuery 1.5+ | |
*/ | |
(function( $ ) { | |
// On DOM ready | |
$(function() { |
<?php | |
/** | |
* @file | |
* Demo module, Basic Ajax request (Ajax framework). | |
*/ | |
/** | |
* Implements hook_menu(). | |
*/ |
<?php | |
/** | |
* @file | |
* Demo module, Basic Ajax form submit (Ajax framework). | |
*/ | |
/** | |
* Implements hook_menu(). | |
*/ |
{ | |
"files": | |
{ | |
"backbone": "https://raw.github.com/documentcloud/backbone/master/backbone.js", | |
"history": "https://raw.github.com/balupton/history.js/master/scripts/compressed/history.js", | |
"jquery": "http://code.jquery.com/jquery.js", | |
"jquery-cookie": "https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js", | |
"jquery-dotimeout": "https://raw.github.com/cowboy/jquery-dotimeout/master/jquery.ba-dotimeout.min.js", | |
"jquery-extra-selectors": "https://raw.github.com/keithclark/JQuery-Extended-Selectors/master/jquery-extra-selectors.js", | |
"jquery-flexslider": "https://raw.github.com/mbmufffin/FlexSlider/master/jquery.flexslider-min.js", |
<?php | |
/** | |
* Implements hook_form_alter(). | |
*/ | |
function modulename_form_alter(&$form, &$form_state, $form_id) { | |
// You might want to filter by content type. | |
if ($form_id == 'ctype_node_form') { | |
// Add a cancel button. | |
$form['actions']['cancel'] = array( |
#!/usr/bin/env node | |
var http = require('http') | |
, url = require('url') | |
, path = require('path') | |
, fs = require('fs') | |
, async = require('async') | |
, exec = require('child_process').exec | |
, imgUrl | |
, options |
<?php | |
/** | |
* Helper function to test for panel page config. | |
*/ | |
function _is_panel_page() { | |
$page = &drupal_static(__FUNCTION__); | |
if (function_exists("page_manager_get_current_page")) { | |
if (!isset($page)) { |