Browse Source

added internal links on click on maps

Bachir Soussi Chiadmi 6 years ago
parent
commit
3ca82e14cb
4 changed files with 130 additions and 111 deletions
  1. 0 0
      js/dist/main.min.js
  2. 0 0
      js/dist/pages.min.js
  3. 8 0
      js/main.js
  4. 122 111
      js/pages.js

File diff suppressed because it is too large
+ 0 - 0
js/dist/main.min.js


File diff suppressed because it is too large
+ 0 - 0
js/dist/pages.min.js


+ 8 - 0
js/main.js

@@ -242,6 +242,7 @@ $(document).ready(function() {
             .addClass("map")
             .attr('overlay', map.over)
             .attr('debug', _SETTINGS.debug ? map.debug : _SETTINGS.debug)
+            .attr('link', typeof map.link !== "undefined" ? map.link : null)
             .css({
               "left":map.x+"mm",
               "top":map.y+"mm",
@@ -260,6 +261,13 @@ $(document).ready(function() {
                 .parents('.page').find('.overlay')
                   .css({'background-image':'none'});
             })
+            .bind("click", function(e){
+              var link = $(this).attr('link');
+              if (link) {
+                _current_dp_key = parseInt(link);
+                changePages();
+              }
+            })
           );
         if(typeof map.repere !== "undefined"){
           $p.append(

File diff suppressed because it is too large
+ 122 - 111
js/pages.js


Some files were not shown because too many files changed in this diff