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:
83
modules/system/assets/ui/js/foundation.event.js
vendored
Normal file
83
modules/system/assets/ui/js/foundation.event.js
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Winter JavaScript foundation library.
|
||||
*
|
||||
* Light-weight utility functions for working with native DOM events. The functions
|
||||
* work with events directly, without jQuery, using the native JavaScript and DOM
|
||||
* features.
|
||||
*
|
||||
* Usage examples:
|
||||
*
|
||||
* $.wn.foundation.event.stop(ev)
|
||||
*
|
||||
*/
|
||||
+function ($) { "use strict";
|
||||
if ($.wn === undefined)
|
||||
$.wn = {}
|
||||
if ($.oc === undefined)
|
||||
$.oc = $.wn
|
||||
|
||||
if ($.wn.foundation === undefined)
|
||||
$.wn.foundation = {}
|
||||
|
||||
var Event = {
|
||||
/*
|
||||
* Returns the event target element.
|
||||
* If the second argument is provided (string), the function
|
||||
* will try to find the first parent with the tag name matching
|
||||
* the argument value.
|
||||
*/
|
||||
getTarget: function(ev, tag) {
|
||||
var target = ev.target ? ev.target : ev.srcElement
|
||||
|
||||
if (tag === undefined)
|
||||
return target
|
||||
|
||||
var tagName = target.tagName
|
||||
|
||||
while (tagName != tag) {
|
||||
target = target.parentNode
|
||||
|
||||
if (!target)
|
||||
return null
|
||||
|
||||
tagName = target.tagName
|
||||
}
|
||||
|
||||
return target
|
||||
},
|
||||
|
||||
stop: function(ev) {
|
||||
if (ev.stopPropagation)
|
||||
ev.stopPropagation()
|
||||
else
|
||||
ev.cancelBubble = true
|
||||
|
||||
if(ev.preventDefault)
|
||||
ev.preventDefault()
|
||||
else
|
||||
ev.returnValue = false
|
||||
},
|
||||
|
||||
pageCoordinates: function(ev) {
|
||||
if (ev.pageX || ev.pageY) {
|
||||
return {
|
||||
x: ev.pageX,
|
||||
y: ev.pageY
|
||||
}
|
||||
}
|
||||
else if (ev.clientX || ev.clientY) {
|
||||
return {
|
||||
x: (ev.clientX + document.body.scrollLeft + document.documentElement.scrollLeft),
|
||||
y: (ev.clientY + document.body.scrollTop + document.documentElement.scrollTop)
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
x: 0,
|
||||
y: 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$.wn.foundation.event = Event;
|
||||
}(window.jQuery);
|
||||
Reference in New Issue
Block a user