Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to jump one page to another on specific tab elementor

<script>

document.addEventListener('DOMContentLoaded', function() {
setTimeout(function() {

jQuery(function($){

let desktoptitles = $('.elementor-tab-desktop-title');
let mobiletitles = $('.elementor-tab-mobile-title');

let strings = ['?hello',
'?heythere',
'?bonjour'
];

strings.forEach( (string,i) => {
if (window.location.href.indexOf(string) > -1) {
desktoptitles.eq(i).click();
mobiletitles.eq(i).click();
$('html, body').animate({
scrollTop: desktoptitles.eq(i).offset().top - 100
},'slow');
} } );
}); }, 1200); });
</script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to use bootstrap in reactjs 
Javascript :: reference to javascript array 
Javascript :: error number:-1,state:0,class:20 
Javascript :: There is only one value in JavaScript that is not equal to itself, and that is NaN (“not a number”). 
Javascript :: throttle ajax requests 
Javascript :: shorten req.body. function 
Javascript :: replace html encodings node.js 
Javascript :: uplaod file in s3 from heroku for node js 
Javascript :: SHOPIFY STORE FRONT PASSWORD 
Javascript :: copy current filename in emacs 
Javascript :: how to call javascript function in p tag 
Javascript :: nodejs sqlite3 db. insert 
Javascript :: curl --post with api 
Javascript :: JSX expression with JS template literals 
Javascript :: how to render req.session.name to ejs 
Javascript :: palindromes array number 
Javascript :: jquery ajax snippet 
Javascript :: Function Returning Object Saved To A Variable 
Javascript :: js set height of element 
Javascript :: prisma single data fetch 
Javascript :: Automatic update javascript fileversion 
Javascript :: Backbone Save Example 
Javascript :: find result using type: mongoose.Schema.ObjectId, 
Javascript :: drupal attached js 
Javascript :: make navigation open when items are active 
Javascript :: calcular idade jquery 
Javascript :: before each function 
Javascript :: react password check wordpress api 
Javascript :: kth smallest element in an array js 
Javascript :: tool to show the date of page publish 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =