raphiz/passwordcards

View on GitHub
resources/js/index.js

Summary

Maintainability
A
0 mins
Test Coverage
(function($) {

    $('#advancedOptionsLabel').click(function() {

        $('#showMoreOptions').toggle();
        $('#hideMoreOptions').toggle();
        $('#advancedOptions').slideToggle();
    });

    $('#with-other').click(function() {
        $('#other-chars').parent().slideToggle();
    });
    $("#primary").tinycolorpicker();
    var primaryPicker = $('#primary').data("plugin_tinycolorpicker");
    primaryPicker.setColor("#1ABC9C");

    $("#secondary").tinycolorpicker();
    var secondaryPicker = $('#secondary').data("plugin_tinycolorpicker");
    secondaryPicker.setColor("#ffffff");


})(jQuery);