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
/* vertically aligned page */ | |
/* postcard style */ | |
html, body { height: 100%; text-align: center; white-space: nowrap; margin: 0} | |
#page { display: inline-block; vertical-align: middle; text-align: left; /* makes the content if page */ white-space: normal; /* behalf normal again */} | |
body:before{ content: ''; display: inline-block; height: 100%; width: 0; overflow: hidden; vertical-align: middle; margin-left: -.3em;} | |
/* custom style - you don't need to copy this */ | |
body{ background-color: #000; font-family: 'Lucida Console','Courier New', monospace; color: #0f0; line-height: 20px; font-size: 15px;} | |
#page{ max-width: 800px; width:100%; background: #000; box-shadow: inset 0 0 10px #0f0, 0 0 40px rgba(0, 0, 0, 0.1) inset; padding: 20px; border-radius: 10px;} |
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
# Ignore configuration files that may contain sensitive information. | |
sites/*/settings*.php | |
# Ignore paths that contain user-generated content. | |
sites/*/files | |
sites/*/private | |
# Unnecessary core files. | |
/README.txt | |
/CHANGELOG.txt |
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
# | |
# Apache/PHP/Drupal settings: | |
# | |
# Protect files and directories from prying eyes. | |
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig\.save)$"> | |
Order allow,deny | |
</FilesMatch> | |
# Don't show directory listings for URLs which map to a directory. |
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 = Example | |
description = Irgendeine Beschreibung | |
core = 7.x |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Show hidden characters
{ | |
"color_scheme": "Packages/Theme - Soda/Soda Dark/Widget - Soda Dark.stTheme", | |
"detect_slow_plugins": true, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 15.0, | |
"ignored_packages": | |
[ | |
"LaTeX", | |
"Git", |
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
<?php | |
/** | |
* Implements hook_custom_theme(). | |
*/ | |
function mymodule_products_custom_theme() { | |
$themes = list_themes(); | |
if (isset($_GET['theme']) && $_GET['theme'] && isset($themes[$_GET['theme']]) && $themes[$_GET['theme']]->status) { | |
return $_GET['theme']; |
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
<?php | |
/** | |
* @file | |
* Administrative tasks for My module. | |
*/ | |
/** | |
* Page callback for Batch example form. | |
*/ |
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
$('a').on('click', function () { | |
var a = new RegExp('/' + window.location.host + '/'); | |
if (!a.test(this.href)) { | |
$(this).click(function (e) { | |
e.preventDefault(); | |
e.stopPropagation(); | |
window.open(this.href, '_blank'); | |
}); | |
} | |
}); |
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
$('video.fit').each(function() { | |
var $this = $(this); | |
var $container = $this.parent(); | |
var containerWidth = $container.width(); | |
var containerHeight = $container.height(); | |
$this[0].addEventListener('loadedmetadata', function() { | |
var videoWidth = $this[0].videoWidth; | |
var videoHeight = $this[0].videoHeight; |
OlderNewer