diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-23 17:30:50 +1200 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-23 17:30:50 +1200 |
| commit | c1f75dd5a3857b3e426ed5d47b9164e71a4eed73 (patch) | |
| tree | 102d7ac047315a5b907024b0886f76355f5c5b32 /libpathod/templates | |
| parent | 091d90011b285ad66fcc1a252389ed386fb72480 (diff) | |
| download | mitmproxy-c1f75dd5a3857b3e426ed5d47b9164e71a4eed73.tar.gz mitmproxy-c1f75dd5a3857b3e426ed5d47b9164e71a4eed73.tar.bz2 mitmproxy-c1f75dd5a3857b3e426ed5d47b9164e71a4eed73.zip | |
Use local scrolling with a JQuery module, because anchor jumps are braindead.
Diffstat (limited to 'libpathod/templates')
| -rw-r--r-- | libpathod/templates/frame.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libpathod/templates/frame.html b/libpathod/templates/frame.html index 9c437eba..f176b15d 100644 --- a/libpathod/templates/frame.html +++ b/libpathod/templates/frame.html @@ -7,6 +7,8 @@ <link href="/static/pathod.css" rel="stylesheet"> <link href="/static/syntax.css" rel="stylesheet"> <script src="/static/jquery-1.7.2.min.js"></script> + <script src="/static/jquery.scrollTo-min.js"></script> + <script src="/static/jquery.localscroll-min.js"></script> <script src="/static/bootstrap.min.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> @@ -68,4 +70,14 @@ </footer> </div> </body> + <script> + $(function(){ + $.localScroll( + { + duration: 300, + offset: {top: -100} + } + ); + }); + </script> </html> |
