feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
- Base: wintercms/winter branch 1.2 (full framework) - Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS - Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication - Partials: hero (offline-first), features, modes (offline/nube toggle), screenshots, pricing (3 planes), comparison, FAQ, CTA - Plugin VivesPOS.Site with ContactForm - Dockerfile: PHP 8.2 Apache, port 80, healthcheck - Added winter/wn-pages, blog, sitemap, seo plugins - Active theme set to vivespos
This commit is contained in:
67
modules/system/assets/ui/js/checkbox.balloon.js
Normal file
67
modules/system/assets/ui/js/checkbox.balloon.js
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Balloon selector control.
|
||||
*
|
||||
* Data attributes:
|
||||
* - data-control="balloon-selector" - enables the plugin
|
||||
*
|
||||
*/
|
||||
+function ($) { "use strict";
|
||||
|
||||
var BalloonSelector = function (element, options) {
|
||||
|
||||
this.$el = $(element)
|
||||
this.$field = $('input', this.$el)
|
||||
|
||||
this.options = options || {};
|
||||
|
||||
var self = this;
|
||||
$('li', this.$el).click(function(){
|
||||
if (self.$el.hasClass('control-disabled')) {
|
||||
return
|
||||
}
|
||||
|
||||
$('li', self.$el).removeClass('active')
|
||||
|
||||
$(this).addClass('active')
|
||||
|
||||
self.$field
|
||||
.val($(this).data('value'))
|
||||
.trigger('change')
|
||||
})
|
||||
}
|
||||
|
||||
BalloonSelector.DEFAULTS = {}
|
||||
|
||||
// BALLOON SELECTOR PLUGIN DEFINITION
|
||||
// ===================================
|
||||
|
||||
var old = $.fn.balloonSelector
|
||||
|
||||
$.fn.balloonSelector = function (option) {
|
||||
return this.each(function () {
|
||||
var $this = $(this)
|
||||
var data = $this.data('oc.balloon-selector')
|
||||
var options = $.extend({}, BalloonSelector.DEFAULTS, $this.data(), typeof option == 'object' && option)
|
||||
|
||||
if (!data) $this.data('oc.balloon-selector', (data = new BalloonSelector(this, options)))
|
||||
})
|
||||
}
|
||||
|
||||
$.fn.balloonSelector.Constructor = BalloonSelector
|
||||
|
||||
// BALLOON SELECTOR NO CONFLICT
|
||||
// ===================================
|
||||
|
||||
$.fn.balloonSelector.noConflict = function () {
|
||||
$.fn.balloonSelector = old
|
||||
return this
|
||||
}
|
||||
|
||||
// BALLOON SELECTOR DATA-API
|
||||
// ===================================
|
||||
|
||||
$(document).on('render', function(){
|
||||
$('div[data-control=balloon-selector]').balloonSelector()
|
||||
})
|
||||
|
||||
}(window.jQuery);
|
||||
Reference in New Issue
Block a user