PluginProbe
AWSM Team – Team Showcase Plugin / trunk
AWSM Team – Team Showcase Plugin vtrunk
trunk 1.0 1.1 1.1.2 1.2.1 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4
awsm-team / js / team.js

team.js in AWSM Team – Team Showcase Plugin trunk, at js/team.js

19 lines 717 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function($) {
2 function is_touch_device() {
3 return (('ontouchstart' in window) || (navigator.MaxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0));
4 }
5
6 if (is_touch_device()) {
7 $('.awsm-grid > .awsm-grid-card > figure').on('touchend', function(e) {
8 if($(e.target).is('.awsm-grid > .awsm-grid-card > figure a') || $(e.target).is('.awsm-grid > .awsm-grid-card > figure a *')) return;
9 e.preventDefault();
10 $(this).toggleClass('cs-hover');
11 });
12 }
13 if (!is_touch_device()) {
14 $('.awsm-grid-wrapper').addClass('no-touchevents');
15 }
16 if (window.navigator.userAgent.indexOf("Windows NT 10.0")!= -1){
17 $('.awsm-grid-wrapper').addClass('no-touchevents');
18 }
19 })(jQuery);