j1-template 2021.3.2 → 2022.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +4 -4
- data/_includes/themes/j1/layouts/content_generator_post.html +3 -3
- data/_includes/themes/j1/modules/navigator/generator.html +9 -11
- data/_includes/themes/j1/modules/search/docsearch.html +1 -1
- data/_includes/themes/j1/procedures/global/create_bs_button.proc +5 -5
- data/_includes/themes/j1/procedures/global/create_word_cloud.proc +3 -1
- data/_includes/themes/j1/procedures/layouts/module_writer.proc +1 -1
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +1 -1
- data/_layouts/default.html +66 -22
- data/_layouts/home.html +1 -1
- data/_layouts/raw.html +2 -1
- data/assets/data/article_navigator/index.html +1 -1
- data/assets/data/banner.html +6 -12
- data/assets/data/cookieconsent.html +11 -11
- data/assets/data/{fam.html → fab.html} +41 -24
- data/assets/data/gallery_customizer.html +2 -2
- data/assets/data/panel.html +12 -18
- data/assets/data/private.json +5 -1
- data/assets/data/quicklinks.html +4 -5
- data/assets/data/themes.bootswatch.json +75 -0
- data/assets/data/themes.json +6 -6
- data/assets/data/translator.html +15 -15
- data/assets/error_pages/HTTP445.html +110 -0
- data/assets/themes/j1/adapter/js/bmd.js +1 -1
- data/assets/themes/j1/adapter/js/cookieConsent.js +7 -1
- data/assets/themes/j1/adapter/js/{fam.js → fab.js} +114 -111
- data/assets/themes/j1/adapter/js/j1.js +202 -142
- data/assets/themes/j1/adapter/js/mmenu.js +18 -24
- data/assets/themes/j1/adapter/js/navigator.js +3 -1
- data/assets/themes/j1/adapter/js/toccer.js +37 -76
- data/assets/themes/j1/adapter/js/translator.js +6 -0
- data/assets/themes/j1/core/country-flags/css/theme/uno.min.css +15 -0
- data/assets/themes/j1/core/css/icon-fonts/mdi.css +22307 -0
- data/assets/themes/j1/core/css/icon-fonts/mdi.min.css +1 -0
- data/assets/themes/j1/core/css/icon-fonts/mdil.css +1222 -0
- data/assets/themes/j1/core/css/icon-fonts/mdil.min.css +1 -0
- data/assets/themes/j1/core/css/icon-fonts/twemoji.css +4 -0
- data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.css +5341 -4730
- data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.min.css +3 -1
- data/assets/themes/j1/core/css/themes/theme_vapor/bootstrap.css +8301 -0
- data/assets/themes/j1/core/css/themes/theme_vapor/bootstrap.min.css +3 -0
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.css +5293 -4702
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.min.css +3 -1
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +11929 -12546
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +18 -18
- data/assets/themes/j1/core/css/vendor.css +2 -28
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +41 -27
- data/assets/themes/j1/core/js/template.min.js +5 -5
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/bmd/js/bmd.js +2280 -0
- data/assets/themes/j1/modules/bmd/js/bmd.min.js +20 -0
- data/assets/themes/j1/modules/bootstrap/js/bootstrap.js +5072 -0
- data/assets/themes/j1/modules/bootstrap/js/bootstrap.min.js +7 -0
- data/assets/themes/j1/modules/bootstrap/js/bootstrap.min.js.map +1 -0
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +19 -17
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +1 -1
- data/assets/themes/j1/modules/{fam/css/theme/uno/fam.css → fab/css/theme/uno/fab.css} +32 -28
- data/assets/themes/j1/modules/{fam/css/theme/uno/fam.min.css → fab/css/theme/uno/fab.min.css} +3 -3
- data/assets/themes/j1/modules/{materialize → fab}/js/cash.js +20 -2
- data/assets/themes/j1/modules/{fam/js/fam.js → fab/js/fab.js} +4 -2
- data/assets/themes/j1/modules/{util → gtag-opt-in}/js/gtag-opt-in.js +15 -1
- data/assets/themes/j1/modules/gtag-opt-in/js/gtag-opt-in.min.js +15 -0
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.min.js +4 -1
- data/assets/themes/j1/modules/materialize/js/bin/materialize.js +12374 -0
- data/assets/themes/j1/modules/materialize/js/bin/materialize.min.js +6 -0
- data/assets/themes/j1/modules/materialize/js/{tapTarget.js → tapTarget.cash.js} +0 -0
- data/assets/themes/j1/modules/materialize/js/tapTarget.jQuery.js +187 -0
- data/assets/themes/j1/modules/popper/js/popper.js +1670 -2346
- data/assets/themes/j1/modules/popper/js/popper.min.js +6 -4
- data/assets/themes/j1/modules/popper/js/popper.min.js.map +1 -1
- data/assets/themes/j1/modules/translator/js/translator.js +6 -2
- data/assets/themes/j1/modules/translator/js/translator.min.js +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +21 -24
- data/lib/starter_web/_data/blocks/banner.yml +22 -7
- data/lib/starter_web/_data/blocks/panel.yml +2 -2
- data/lib/starter_web/_data/builder/defaults/blog_navigator.yml +42 -35
- data/lib/starter_web/_data/j1_config.yml +1 -1
- data/lib/starter_web/_data/layouts/article_navigator.yml +1 -1
- data/lib/starter_web/_data/layouts/blog_archive.yml +1 -1
- data/lib/starter_web/_data/layouts/collection.yml +1 -1
- data/lib/starter_web/_data/layouts/home.yml +5 -5
- data/lib/starter_web/_data/layouts/news_panel_posts.yml +1 -1
- data/lib/starter_web/_data/layouts/page.yml +1 -1
- data/lib/starter_web/_data/layouts/post.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/{fam.yml → fab.yml} +8 -7
- data/lib/starter_web/_data/modules/defaults/navigator.yml +3 -0
- data/lib/starter_web/_data/modules/defaults/rtable.yml +2 -1
- data/lib/starter_web/_data/modules/defaults/scoller.yml +33 -0
- data/lib/starter_web/_data/modules/defaults/themer.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/toccer.yml +5 -4
- data/lib/starter_web/_data/modules/{fam.yml → fab.yml} +31 -31
- data/lib/starter_web/_data/modules/scroller.yml +2 -2
- data/lib/starter_web/_data/modules/toccer.yml +3 -5
- data/lib/starter_web/_data/resources.yml +45 -31
- data/lib/starter_web/_includes/attributes.asciidoc +48 -48
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +1 -4
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.adoc +2 -2
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-site-generators.adoc +2 -2
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-03-about-j1.adoc +2 -2
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-wiki-series.adoc +1 -1
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-wiki-series.adoc +1 -1
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-wiki-series.adoc +2 -2
- data/lib/starter_web/index.html +1 -1
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/_test_pages/100_side-bar-tester.adoc +244 -0
- data/lib/starter_web/pages/_test_pages/_includes/attributes.asciidoc +110 -0
- data/lib/starter_web/pages/_test_pages/_includes/documents/100_gistblock.asciidoc +28 -0
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_info.asciidoc +14 -0
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_left_warning.asciidoc +11 -0
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_right_danger.asciidoc +11 -0
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_central_success.asciidoc +11 -0
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_left_info.asciidoc +11 -0
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_right_success.asciidoc +11 -0
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_table_bs_modal_examples.asciidoc +47 -0
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_info.asciidoc +11 -0
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_left_info.asciidoc +11 -0
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_right_success.asciidoc +11 -0
- data/lib/starter_web/pages/_test_pages/_includes/documents/419_advanced_modals_demo.asciidoc +337 -0
- data/lib/starter_web/pages/_test_pages/_includes/documents/tables/bs_modal_examples.asciidoc +47 -0
- data/lib/starter_web/pages/_test_pages/accordion-01-tester.adoc +220 -0
- data/lib/starter_web/pages/_test_pages/accordion-02-tester.adoc +177 -0
- data/lib/starter_web/pages/_test_pages/accordion-03-tester.adoc +148 -0
- data/lib/starter_web/pages/_test_pages/attribute-changes-01-tester.adoc +226 -0
- data/lib/starter_web/pages/_test_pages/backdrop-tester.adoc +109 -0
- data/lib/starter_web/pages/_test_pages/button-tester-1.adoc +127 -0
- data/lib/starter_web/pages/_test_pages/card-tester.adoc +128 -0
- data/lib/starter_web/pages/_test_pages/cookieConsent.adoc +96 -0
- data/lib/starter_web/pages/_test_pages/deepl.0.adoc +258 -0
- data/lib/starter_web/pages/_test_pages/deepl.adoc +204 -0
- data/lib/starter_web/pages/_test_pages/desandro-button.adoc +171 -0
- data/lib/starter_web/pages/_test_pages/desandro.adoc +147 -0
- data/lib/starter_web/pages/_test_pages/flipcard-1-tester.adoc +308 -0
- data/lib/starter_web/pages/_test_pages/formular-01-tester.adoc +167 -0
- data/lib/starter_web/pages/_test_pages/formular-02-tester.adoc +727 -0
- data/lib/starter_web/pages/_test_pages/google-translate-tester.0.adoc +113 -0
- data/lib/starter_web/pages/_test_pages/google-translate-tester.1.adoc +233 -0
- data/lib/starter_web/pages/_test_pages/google-translate-tester.3.adoc +149 -0
- data/lib/starter_web/pages/_test_pages/google-translate-tester.4.adoc +239 -0
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-2.adoc +183 -0
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-3.adoc +235 -0
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-4.adoc +222 -0
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-5.adoc +119 -0
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester.1.adoc +236 -0
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester.adoc +225 -0
- data/lib/starter_web/pages/_test_pages/list-group-tester.adoc +265 -0
- data/lib/starter_web/pages/_test_pages/tictok.adoc +127 -0
- data/lib/starter_web/pages/public/about/about_site.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/000_intro.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.a2p +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +5 -5
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +3 -3
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +3 -3
- data/lib/starter_web/pages/public/blog/navigator/archive.html +3 -3
- data/lib/starter_web/pages/public/blog/navigator/index.html +1 -1
- data/lib/starter_web/pages/public/learn/quickstart.adoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +13 -11
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +2 -2
- data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +2 -2
- data/lib/starter_web/pages/public/legal/de/100_impress.adoc +2 -2
- data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +2 -2
- data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +2 -2
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +2 -2
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +2 -2
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +2 -2
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +2 -2
- data/lib/starter_web/pages/public/manuals/dropdown-help.adoc +1 -1
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +2 -2
- data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +1578 -666
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +73 -20
- data/assets/themes/j1/modules/bmd/css/bootstrap-material-design.css +0 -12177
- data/assets/themes/j1/modules/bmd/css/bootstrap-material-design.min.css +0 -8
- data/assets/themes/j1/modules/bmd/js/bootstrap-material-design.full.js +0 -6930
- data/assets/themes/j1/modules/bmd/js/bootstrap-material-design.js +0 -6936
- data/assets/themes/j1/modules/bmd/js/bootstrap-material-design.js.map +0 -1
- data/assets/themes/j1/modules/bmd/js/bootstrap-material-design.min.js +0 -1
- data/assets/themes/j1/modules/popper/js/popper.js.map +0 -1
- data/assets/themes/j1/modules/util/js/domready.js +0 -146
@@ -0,0 +1,187 @@
|
|
1
|
+
(function ($) {
|
2
|
+
|
3
|
+
var methods = {
|
4
|
+
init: function (options) {
|
5
|
+
return this.each(function() {
|
6
|
+
var origin = $('#'+$(this).attr('data-activates'));
|
7
|
+
var screen = $('body');
|
8
|
+
|
9
|
+
// Creating tap target
|
10
|
+
var tapTargetEl = $(this);
|
11
|
+
var tapTargetWrapper = tapTargetEl.parent('.tap-target-wrapper');
|
12
|
+
var tapTargetWave = tapTargetWrapper.find('.tap-target-wave');
|
13
|
+
var tapTargetOriginEl = tapTargetWrapper.find('.tap-target-origin');
|
14
|
+
var tapTargetContentEl = tapTargetEl.find('.tap-target-content');
|
15
|
+
|
16
|
+
// Creating wrapper
|
17
|
+
if (!tapTargetWrapper.length) {
|
18
|
+
tapTargetWrapper = tapTargetEl.wrap($('<div class="tap-target-wrapper"></div>')).parent();
|
19
|
+
}
|
20
|
+
|
21
|
+
// Creating content
|
22
|
+
if (!tapTargetContentEl.length) {
|
23
|
+
tapTargetContentEl = $('<div class="tap-target-content"></div>');
|
24
|
+
tapTargetEl.append(tapTargetContentEl);
|
25
|
+
}
|
26
|
+
|
27
|
+
// Creating foreground wave
|
28
|
+
if (!tapTargetWave.length) {
|
29
|
+
tapTargetWave = $('<div class="tap-target-wave"></div>');
|
30
|
+
|
31
|
+
// Creating origin
|
32
|
+
if (!tapTargetOriginEl.length) {
|
33
|
+
tapTargetOriginEl = origin.clone(true, true);
|
34
|
+
tapTargetOriginEl.addClass('tap-target-origin');
|
35
|
+
tapTargetOriginEl.removeAttr('id');
|
36
|
+
tapTargetOriginEl.removeAttr('style');
|
37
|
+
tapTargetWave.append(tapTargetOriginEl);
|
38
|
+
}
|
39
|
+
|
40
|
+
tapTargetWrapper.append(tapTargetWave);
|
41
|
+
}
|
42
|
+
|
43
|
+
// Open
|
44
|
+
var openTapTarget = function() {
|
45
|
+
if (tapTargetWrapper.is('.open')) {
|
46
|
+
return;
|
47
|
+
}
|
48
|
+
|
49
|
+
// Adding open class
|
50
|
+
tapTargetWrapper.addClass('open');
|
51
|
+
|
52
|
+
setTimeout(function() {
|
53
|
+
tapTargetOriginEl.off('click.tapTarget').on('click.tapTarget', function(e) {
|
54
|
+
closeTapTarget();
|
55
|
+
tapTargetOriginEl.off('click.tapTarget');
|
56
|
+
});
|
57
|
+
|
58
|
+
$(document).off('click.tapTarget').on('click.tapTarget', function(e) {
|
59
|
+
closeTapTarget();
|
60
|
+
$(document).off('click.tapTarget');
|
61
|
+
});
|
62
|
+
|
63
|
+
var throttledCalc = Materialize.throttle(function() {
|
64
|
+
calculateTapTarget();
|
65
|
+
}, 200);
|
66
|
+
$(window).off('resize.tapTarget').on('resize.tapTarget', throttledCalc);
|
67
|
+
}, 0);
|
68
|
+
};
|
69
|
+
|
70
|
+
// Close
|
71
|
+
var closeTapTarget = function(){
|
72
|
+
if (!tapTargetWrapper.is('.open')) {
|
73
|
+
return;
|
74
|
+
}
|
75
|
+
|
76
|
+
tapTargetWrapper.removeClass('open');
|
77
|
+
tapTargetOriginEl.off('click.tapTarget')
|
78
|
+
$(document).off('click.tapTarget');
|
79
|
+
$(window).off('resize.tapTarget');
|
80
|
+
};
|
81
|
+
|
82
|
+
// Pre calculate
|
83
|
+
var calculateTapTarget = function() {
|
84
|
+
// Element or parent is fixed position?
|
85
|
+
var isFixed = origin.css('position') === 'fixed';
|
86
|
+
if (!isFixed) {
|
87
|
+
var parents = origin.parents();
|
88
|
+
for(var i = 0; i < parents.length; i++) {
|
89
|
+
isFixed = $(parents[i]).css('position') == 'fixed';
|
90
|
+
if (isFixed) {
|
91
|
+
break;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
// Calculating origin
|
97
|
+
var originWidth = origin.outerWidth();
|
98
|
+
var originHeight = origin.outerHeight();
|
99
|
+
var originTop = isFixed ? origin.offset().top - $(document).scrollTop() : origin.offset().top;
|
100
|
+
var originLeft = isFixed ? origin.offset().left - $(document).scrollLeft() : origin.offset().left;
|
101
|
+
|
102
|
+
// Calculating screen
|
103
|
+
var windowWidth = $(window).width();
|
104
|
+
var windowHeight = $(window).height();
|
105
|
+
var centerX = windowWidth / 2;
|
106
|
+
var centerY = windowHeight / 2;
|
107
|
+
var isLeft = originLeft <= centerX;
|
108
|
+
var isRight = originLeft > centerX;
|
109
|
+
var isTop = originTop <= centerY;
|
110
|
+
var isBottom = originTop > centerY;
|
111
|
+
var isCenterX = originLeft >= windowWidth*0.25 && originLeft <= windowWidth*0.75;
|
112
|
+
var isCenterY = originTop >= windowHeight*0.25 && originTop <= windowHeight*0.75;
|
113
|
+
|
114
|
+
// Calculating tap target
|
115
|
+
var tapTargetWidth = tapTargetEl.outerWidth();
|
116
|
+
var tapTargetHeight = tapTargetEl.outerHeight();
|
117
|
+
var tapTargetTop = originTop + originHeight/2 - tapTargetHeight/2;
|
118
|
+
var tapTargetLeft = originLeft + originWidth/2 - tapTargetWidth/2;
|
119
|
+
var tapTargetPosition = isFixed ? 'fixed' : 'absolute';
|
120
|
+
|
121
|
+
// Calculating content
|
122
|
+
var tapTargetTextWidth = isCenterX ? tapTargetWidth : tapTargetWidth/2 + originWidth;
|
123
|
+
var tapTargetTextHeight = tapTargetHeight/2;
|
124
|
+
var tapTargetTextTop = isTop ? tapTargetHeight/2 : 0;
|
125
|
+
var tapTargetTextBottom = 0;
|
126
|
+
var tapTargetTextLeft = isLeft && !isCenterX ? tapTargetWidth/2 - originWidth : 0;
|
127
|
+
var tapTargetTextRight = 0;
|
128
|
+
var tapTargetTextPadding = originWidth;
|
129
|
+
var tapTargetTextAlign = isBottom ? 'bottom' : 'top';
|
130
|
+
|
131
|
+
// Calculating wave
|
132
|
+
var tapTargetWaveWidth = originWidth > originHeight ? originWidth*2 : originWidth*2;
|
133
|
+
var tapTargetWaveHeight = tapTargetWaveWidth;
|
134
|
+
var tapTargetWaveTop = tapTargetHeight/2 - tapTargetWaveHeight/2;
|
135
|
+
var tapTargetWaveLeft = tapTargetWidth/2 - tapTargetWaveWidth/2;
|
136
|
+
|
137
|
+
// Setting tap target
|
138
|
+
var tapTargetWrapperCssObj = {};
|
139
|
+
tapTargetWrapperCssObj.top = isTop ? tapTargetTop : '';
|
140
|
+
tapTargetWrapperCssObj.right = isRight ? windowWidth - tapTargetLeft - tapTargetWidth : '';
|
141
|
+
tapTargetWrapperCssObj.bottom = isBottom ? windowHeight - tapTargetTop - tapTargetHeight : '';
|
142
|
+
tapTargetWrapperCssObj.left = isLeft ? tapTargetLeft : '';
|
143
|
+
tapTargetWrapperCssObj.position = tapTargetPosition;
|
144
|
+
tapTargetWrapper.css(tapTargetWrapperCssObj);
|
145
|
+
|
146
|
+
// Setting content
|
147
|
+
tapTargetContentEl.css({
|
148
|
+
width: tapTargetTextWidth,
|
149
|
+
height: tapTargetTextHeight,
|
150
|
+
top: tapTargetTextTop,
|
151
|
+
right: tapTargetTextRight,
|
152
|
+
bottom: tapTargetTextBottom,
|
153
|
+
left: tapTargetTextLeft,
|
154
|
+
padding: tapTargetTextPadding,
|
155
|
+
verticalAlign: tapTargetTextAlign
|
156
|
+
});
|
157
|
+
|
158
|
+
// Setting wave
|
159
|
+
tapTargetWave.css({
|
160
|
+
top: tapTargetWaveTop,
|
161
|
+
left: tapTargetWaveLeft,
|
162
|
+
width: tapTargetWaveWidth,
|
163
|
+
height: tapTargetWaveHeight
|
164
|
+
});
|
165
|
+
}
|
166
|
+
|
167
|
+
if (options == 'open') {
|
168
|
+
calculateTapTarget();
|
169
|
+
openTapTarget();
|
170
|
+
}
|
171
|
+
|
172
|
+
if (options == 'close')
|
173
|
+
closeTapTarget();
|
174
|
+
});
|
175
|
+
},
|
176
|
+
open: function() {},
|
177
|
+
close: function() {}
|
178
|
+
};
|
179
|
+
|
180
|
+
$.fn.tapTarget = function(methodOrOptions) {
|
181
|
+
if (methods[methodOrOptions] || typeof methodOrOptions === 'object')
|
182
|
+
return methods.init.apply( this, arguments );
|
183
|
+
|
184
|
+
$.error( 'Method ' + methodOrOptions + ' does not exist on jQuery.tap-target' );
|
185
|
+
};
|
186
|
+
|
187
|
+
}( jQuery ));
|