Browse Source

lang switch

master
rdrew 2 days ago
parent
commit
22e8438f02
  1. 20
      js/custom.js

20
js/custom.js

@ -1,3 +1,23 @@
(function (Drupal) {
//stuff goes here
})(Drupal);
(function ($) {
Drupal.behaviors.ethnographyBehavior = {
attach: function (context, settings) {
$("#text-fr").hide();
$( "#show-text-en" , context).click(function(e) {
e.preventDefault();
$("#text-en").show();
$("#text-fr").hide();
});
$( "#show-text-fr" , context).click(function(e) {
e.preventDefault();
$("#text-en").hide();
$("#text-fr").show();
});
}
};
}(jQuery));

Loading…
Cancel
Save