Every line of 'scroll down js' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
35 function scrollDown(){ 36 var psconsole = $('#G2_output'); 37 psconsole.scrollTop( 38 psconsole[0].scrollHeight - psconsole.height() 39 ); 40 }
209 scroll(offset=0, line=null) { 210 let start_div = document.getElementById(`input-start-${this.uuid}`) 211 let start_ypos = scroll_position(start_div, offset) 212 213 let end_div = document.getElementById(`input-end-${this.uuid}`) 214 let end_ypos = scroll_position(end_div, offset) 215 216 // TODO: Filter out lines containing whitespace only 217 let delta = (start_ypos - end_ypos) / this.source.split("\n").length 218 let ypos = ((this.mode == 'code') && (line==null)) ? (start_ypos + delta) : start_ypos 219 let line_offset = (line != null) ? (delta*line) : 0 220 window.scroll({top : ypos - line_offset + offset, 221 left : 0, behavior : 'smooth'}) 222 }
17 scrollDown() { 18 this.tag("Wrap").y -= 1; 19 20 if (this.tag("Wrap").y < -10000) { 21 this.tag("Wrap").y = 0; 22 } 23 }
81 scrollDown() { 82 $('.message-container').animate({scrollTop: 99999}) 83 }
3 function scroll () { 4 if (window.location.hash === '') return 5 const anchor = $j('a[href="' + window.location.hash + '"]') 6 if (anchor) $j(window).scrollTop(anchor.offset().top) 7 }
482 function tscrolldown(n) { 483 var some = false; 484 for(; n > 0; n--){ 485 if(this.scrolldown1()) 486 some=true; 487 else 488 break; 489 } 490 return some; 491 }
28 scrollUpHelper() { 29 return this.app.waitForExist('~upScroll').click('~upScroll'); 30 }
36 function scroll_to(delta) { 37 38 if (delta < 0 ) { 39 40 delta = -scrollinc; 41 } else { 42 43 delta = scrollinc; 44 } 45 46 delta = delta * deltaKoef; 47 48 var listWidth = scroller.find('.dslca-section-scroller-content').width(); 49 var contentWidth = scroller.width(); 50 51 if ( listWidth <= contentWidth ) return false; 52 53 var scrollMax = listWidth - contentWidth + 10; 54 55 delta = parseInt(scrollInner.style.left || 0) - delta; 56 delta = delta >= 0 ? 0 : delta; 57 delta = delta <= -scrollMax ? -scrollMax : delta; 58 59 scrollInner.style.left = delta + 'px'; 60 }
256 function scrollTo(e, direction_down) { 257 if (current_file !== null && !current_file.classList.contains("highlighted")) { 258 current_file.style.backgroundColor = default_color; 259 } 260 current_file = e; 261 if (!isInViewport(e)) { 262 if (direction_down) { 263 e.scrollIntoView(false); 264 window.scrollBy(0, 30); 265 } else { 266 e.scrollIntoView(); 267 window.scrollBy(0, -30); 268 } 269 } 270 271 e.style.backgroundColor = highlight_color; 272 }
127 function scrollToSelection() { 128 if (!selectedString) { 129 return; 130 } 131 132 const scrollPadding = 20; 133 134 const tableContainer = $('#tabs_table__container'); 135 const stringOffset = selectedString[0].offsetTop; 136 const scrollMax = stringOffset - scrollPadding; 137 const scrollMin = stringOffset 138 + selectedString.height() - tableContainer.height() + scrollPadding; 139 140 if (scrollMax < scrollMin) { 141 // Resetting scroll since there is no enough space 142 tableContainer.scrollTop(0); 143 return; 144 } 145 146 const scrollValue = Math.max(0, scrollMin, 147 Math.min(scrollMax, tableContainer.scrollTop())); 148 tableContainer.scrollTop(scrollValue); 149 }