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
$(function() { | |
addPerformModificationsButton = function(mode, showComplexity) { | |
var button; | |
button = $('<a class="button-box x-button user-action button small ui-print__controls__print" role="button"></a>'); | |
var withComplexity; | |
withComplexity = showComplexity ? '(mit Komplexität) ' : ''; | |
if (mode == 'planning') { | |
button.append('<span class="">Zu Planungsdokumentation ' + withComplexity + 'konvertieren</span>'); | |
} else if (mode == 'review') | |
button.append('<span class="">Zu Abnahmedokumentation ' + withComplexity + 'konvertieren</span>'); |
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
$(function() { | |
addPerformModificationsButton = function(mode) { | |
var button; | |
button = $('<a class="button-box x-button user-action button small ui-print__controls__print" role="button"></a>'); | |
if (mode == 'planning') | |
button.append('<span class="">Zu Planungsdokumentation konvertieren</span>'); | |
else if (mode == 'review') | |
button.append('<span class="">Zu Abnahmedokumentation konvertieren</span>'); | |
$('body').prepend(button); | |
button.click(function() { |
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
around { |example| with_wait_time(6) { example.run } } |
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
#... | |
module MyProject | |
class Application < Rails::Application | |
config.assets.precompile += %w( ie6.css ie6_portion2.css ie7.css ie7_portion2.css ie8.css ie8_portion2.css ie9.css ie9_portion2.css) | |
#... | |
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
$ -> | |
$('body') | |
.on 'mouseenter', 'a, button, input[type=submit]', -> | |
$(this).addClass('slvzr-hover') | |
.on 'mouseleave', 'a, button, input[type=submit]', -> | |
$(this).removeClass('slvzr-hover') |
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
/* jQuery Radiofy | |
* ============== | |
* Turns a select into a hidden text input and | |
* a set of radio buttons that resemble the options. | |
* This is used to enable client_side_validations for radio buttons. | |
* --- | |
* Daniel Kirsch | |
* (c) 2012 Zweitag GmbH | |
*/ | |
(function($){ |
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
# men (men) | |
men: "Bekleidung & Accessoires > Bekleidung" | |
# Accessoires (men > Accessoires) | |
men_accessoires: "Bekleidung & Accessoires > Bekleidungsaccessoires > Gürtel" | |
# Gürtel (men > Accessoires > Gürtel) | |
men_accessoires_guertel: "Bekleidung & Accessoires > Bekleidungsaccessoires" | |
# Hüte & Mützen (men > Accessoires > Hüte & Mützen) | |
men_accessoires_huete_muetzen: "Bekleidung & Accessoires > Bekleidungsaccessoires" | |
# Schals & Tücher (men > Accessoires > Schals & Tücher) | |
men_accessoires_schals_tuecher: "Bekleidung & Accessoires > Bekleidungsaccessoires" |
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
require 'rake' | |
require 'css_splitter' | |
desc 'split css files' | |
namespace :css do | |
task :split do | |
infile = ENV['infile'] || raise("missing infile") | |
outdir = ENV['outdir'] || File.dirname(infile) | |
max_selectors = ENV['max_selectors'] || 4095 |
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
def javascript(print_tag = false, &block) | |
content_for(:javascript) do | |
if print_tag | |
js = Proc.new { block.call } | |
javascript_tag(&js) | |
else | |
capture(&block) | |
end | |
end | |
end |
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
// Module that encapsulates access to numberOfCalls and numberOfCompletedCalls. | |
// Facilitates the ensurance that every flash message is displayed for 5-6 sec. | |
// Use registerOne() to register a flash message (before calling fade!). | |
// Use completeOne() once to indicate that a flash message has passed its display time. | |
// Use allowFade() in order to ask whether the flash div can be faded out now. | |
Register = function () { | |
var numberOfCalls = 0; | |
var numberOfCompletedCalls = 0; | |
return { |
NewerOlder