on master help sign in
Merge branch 'master' of github.com:urbit/urbit.org
commit20d26a03a1edd14443d435ed5f60f7ff1665425f authorMatilde Park <matilde@tlon.io> dateFri 1 Nov 2019, 23:05 (7 years ago) parent5b71f2c0f34926
2 files changed+14−1
content/understanding-urbit/your-last-computer.md+1−1 static/scripts.js+13
content/understanding-urbit/your-last-computer.md+1−1
@@ -15,7 +15,7 @@ First, let’s talk about what it should feel like in the future.
1515
1616<img class="mv5 w-100" src="https://media.urbit.org/site/understanding-urbit/your-last-computer/your-last-computer-waves%402x.png">
1717
18−Imagine that you can login from anywhere with one simple, memorable name and password. And when you do, an entire OS appears for you. Inside is your whole digital life. Every conversation you’ve ever had, all your biometric data — every step and heartbeat. Your personal mesh of devices: your doors, your car, your irrigation. All of your communities, every message you’ve shared with friends and family. Every connection you’ve made and every archival piece of data, in one place. Secure and private, forever.
18+Imagine that you can log in from anywhere with one simple, memorable name and password. And when you do, an entire OS appears for you. Inside is your whole digital life. Every conversation you’ve ever had, all your biometric data — every step and heartbeat. Your personal mesh of devices: your doors, your car, your irrigation. All of your communities, every message you’ve shared with friends and family. Every connection you’ve made and every archival piece of data, in one place. Secure and private, forever.
1919
2020You own and control this OS completely. Your system doesn’t live on someone else’s server, so there’s no risk of leaking it in a mass data breach or losing it when a service shuts down. Your Urbit is a sealed, secure, and durable system.
2121
static/scripts.js+13
@@ -325,7 +325,16 @@ if (document.readyState === "complete" ||
325325 });
326326}
327327
328+// Scroll to current document in nav list.
329+let docsNavScroll = function() {
330+ let docsDetails = document.querySelectorAll("nav ul details")
331+ for (let details in docsDetails) {
332+ if (docsDetails[details].open) docsDetails[details].scrollIntoView()
333+ }
334+}
335+
328336if (window.location.href.includes("docs")) {
337+ // tooltip behaviour for standard library page
329338 tippy('.tooltip', {
330339 content(reference) {
331340 const title = reference.getAttribute('title')
@@ -336,6 +345,8 @@ if (window.location.href.includes("docs")) {
336345 animation: 'fade'
337346 })
338347
348+ // on mobile, dropdown selections go to the option
349+
339350 let docsSelect = document.getElementById('docsSelect');
340351 let goTo = function() {
341352 let url = docsSelect.options[docsSelect.selectedIndex].value;
@@ -345,6 +356,8 @@ if (window.location.href.includes("docs")) {
345356 }
346357
347358 docsSelect.addEventListener('change', goTo);
359+ // docs autoscroll to current page
360+ docsNavScroll();
348361}
349362
350363// same-page navigation on-scroll behaviour