updated core to 7.58 (right after the site was hacked)
This commit is contained in:
9
sites/all/modules/examples/js_example/js/black.js
Normal file
9
sites/all/modules/examples/js_example/js/black.js
Normal file
@@ -0,0 +1,9 @@
|
||||
(function ($) {
|
||||
Drupal.behaviors.jsWeightsBlack = {
|
||||
attach: function (context, settings) {
|
||||
var weight = settings.jsWeights.black;
|
||||
var newDiv = $('<div />').css('color', 'black').html('I have a weight of ' + weight);
|
||||
$('#js-weights').append(newDiv);
|
||||
}
|
||||
};
|
||||
})(jQuery);
|
9
sites/all/modules/examples/js_example/js/blue.js
Normal file
9
sites/all/modules/examples/js_example/js/blue.js
Normal file
@@ -0,0 +1,9 @@
|
||||
(function ($) {
|
||||
Drupal.behaviors.jsWeightsBlue = {
|
||||
attach: function (context, settings) {
|
||||
var weight = settings.jsWeights.blue;
|
||||
var newDiv = $('<div />').css('color', 'blue').html('I have a weight of ' + weight);
|
||||
$('#js-weights').append(newDiv);
|
||||
}
|
||||
};
|
||||
})(jQuery);
|
9
sites/all/modules/examples/js_example/js/brown.js
Normal file
9
sites/all/modules/examples/js_example/js/brown.js
Normal file
@@ -0,0 +1,9 @@
|
||||
(function ($) {
|
||||
Drupal.behaviors.jsWeightsBrown = {
|
||||
attach: function (context, settings) {
|
||||
var weight = settings.jsWeights.brown;
|
||||
var newDiv = $('<div />').css('color', 'brown').html('I have a weight of ' + weight);
|
||||
$('#js-weights').append(newDiv);
|
||||
}
|
||||
};
|
||||
})(jQuery);
|
9
sites/all/modules/examples/js_example/js/green.js
Normal file
9
sites/all/modules/examples/js_example/js/green.js
Normal file
@@ -0,0 +1,9 @@
|
||||
(function ($) {
|
||||
Drupal.behaviors.jsWeightsGreen = {
|
||||
attach: function (context, settings) {
|
||||
var weight = settings.jsWeights.green;
|
||||
var newDiv = $('<div></div>').css('color', 'green').html('I have a weight of ' + weight);
|
||||
$('#js-weights').append(newDiv);
|
||||
}
|
||||
};
|
||||
})(jQuery);
|
9
sites/all/modules/examples/js_example/js/purple.js
Normal file
9
sites/all/modules/examples/js_example/js/purple.js
Normal file
@@ -0,0 +1,9 @@
|
||||
(function ($) {
|
||||
Drupal.behaviors.jsWeightsPurple = {
|
||||
attach: function (context, settings) {
|
||||
var weight = settings.jsWeights.purple;
|
||||
var newDiv = $('<div />').css('color', 'purple').html('I have a weight of ' + weight);
|
||||
$('#js-weights').append(newDiv);
|
||||
}
|
||||
};
|
||||
})(jQuery);
|
9
sites/all/modules/examples/js_example/js/red.js
Normal file
9
sites/all/modules/examples/js_example/js/red.js
Normal file
@@ -0,0 +1,9 @@
|
||||
(function ($) {
|
||||
Drupal.behaviors.jsWeightsRed = {
|
||||
attach: function (context, settings) {
|
||||
var weight = settings.jsWeights.red;
|
||||
var newDiv = $('<div />').css('color', 'red').html('I have a weight of ' + weight);
|
||||
$('#js-weights').append(newDiv);
|
||||
}
|
||||
};
|
||||
})(jQuery);
|
Reference in New Issue
Block a user