1((Drupal, drupalSettings, once) => { 2 Drupal.behaviors.ginLoginWallpaper = { 3 attach: function(context) { 4 once("ginLogin", ".user-form-page__wallpaper", context).forEach((() => { 5 Drupal.ginLoginWallpaper.randomWallpaper(); 6 })); 7 } 8 }, Drupal.ginLoginWallpaper = { 9 randomWallpaper: () => { 10 const path = drupalSettings.gin_login.path + "/images/wallpapers/", wallpapers = [ "eberhard-grossgasteiger-uE1fGoWWHsY-unsplash.jpg", "eberhard-grossgasteiger-v5qZ8VnPamg-unsplash.jpg", "eberhard-grossgasteiger-ULC4CL2MGK8-unsplash.jpg", "eberhard-grossgasteiger-mt1sZs4QBcw-unsplash.jpg", "claudio-schwarz-mYY3NNP47pU-unsplash.jpg", "claudio-schwarz-XmXQ5Ek60pk-unsplash.jpg", "micha-sager-lsDJyu_uJhw-unsplash.jpg" ], wallpaper = wallpapers[Math.floor(Math.random() * wallpapers.length)]; 11 let image = new Image; 12 image.src = path + wallpaper, image.alt = "", document.querySelector(".gin-login .user-form-page__wallpaper").appendChild(image); 13 } 14 }; 15})(Drupal, drupalSettings, once);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.