diff --git a/dist/custom.css b/dist/custom.css index 97a2f54..cdbfee8 100644 --- a/dist/custom.css +++ b/dist/custom.css @@ -1,4 +1,16 @@ /*Google Places autocomplete*/ .pac-container { z-index: 99999; -} \ No newline at end of file +} + +.inl-bl { display: inline-block; }.colorpicker-2x .colorpicker-saturation { width: 200px; height: 200px; } .colorpicker-2x .colorpicker-hue, .colorpicker-2x .colorpicker-alpha { width: 30px; height: 200px; } .colorpicker-2x .colorpicker-color, .colorpicker-2x .colorpicker-color div { height: 30px; } + +.small-box { + width: 8em; height: 6em; border: 2px solid; text-align: center; position: relative; margin: 1em; float:left; background-color: white; +} + +.small-box.on {background-color: #cccccc;} +.small-box1 {font-family: Arial;} +.small-box2 {font-family: Tahoma;} +.small-box3 {font-family: 'Comic Sans MS';} +#cp9 {background-color: pink;} diff --git a/dist/custom.js b/dist/custom.js index 4d51c36..9831e5a 100644 --- a/dist/custom.js +++ b/dist/custom.js @@ -47,4 +47,21 @@ $('.js-delete-button-confirmation-trigger').click(function () { $('.js-delete-button-confirmation').attr('hidden', true); $('.js-delete-button-trigger').attr('hidden', false); -}); \ No newline at end of file +}); + +$(function() { $('#cp9').colorpicker({ customClass: 'colorpicker-2x', sliders: { saturation: { maxLeft: 200, maxTop: 200 }, hue: { maxTop: 200 }, alpha: { maxTop: 200 } } }); }); + +$(function() {$('#cp9').colorpicker().on( + 'changeColor', + function() { + $('#cp9').css('background-color', + $(this).colorpicker('getValue', '#ffffff')); + }); + }); + +$( function() { + $('.small-box').click( function() { + $('.small-box').removeClass('on') + $(this).toggleClass('on'); +} ) +}); diff --git a/src/assets/js/.Rhistory b/src/assets/js/.Rhistory new file mode 100644 index 0000000..e69de29 diff --git a/src/views/backend/websettings.ejs b/src/views/backend/websettings.ejs new file mode 100644 index 0000000..497c6b8 --- /dev/null +++ b/src/views/backend/websettings.ejs @@ -0,0 +1,55 @@ + + + +