Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: firstRun.js

Issue 29328733: Issue 2018 - Optimized first-run page for smaller screens (Closed)
Patch Set: Created Oct. 8, 2015, 2:45 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « firstRun.html ('k') | skin/firstRun.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 if (isBlocked) 148 if (isBlocked)
149 link.removeEventListener("click", onSocialLinkClick, false); 149 link.removeEventListener("click", onSocialLinkClick, false);
150 else 150 else
151 link.addEventListener("click", onSocialLinkClick, false); 151 link.addEventListener("click", onSocialLinkClick, false);
152 }); 152 });
153 }); 153 });
154 } 154 }
155 155
156 function onSocialLinkClick(event) 156 function onSocialLinkClick(event)
157 { 157 {
158 if (window.matchMedia("(max-width: 970px)").matches)
159 return;
160
158 event.preventDefault(); 161 event.preventDefault();
159 162
160 getDocLink(event.target.id, function(link) 163 getDocLink(event.target.id, function(link)
161 { 164 {
162 openSharePopup(link); 165 openSharePopup(link);
163 }); 166 });
164 } 167 }
165 168
166 function setLinks(id) 169 function setLinks(id)
167 { 170 {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 { 219 {
217 var button = E("toggle-" + feature); 220 var button = E("toggle-" + feature);
218 if (isEnabled) 221 if (isEnabled)
219 button.classList.remove("off"); 222 button.classList.remove("off");
220 else 223 else
221 button.classList.add("off"); 224 button.classList.add("off");
222 } 225 }
223 226
224 document.addEventListener("DOMContentLoaded", onDOMLoaded, false); 227 document.addEventListener("DOMContentLoaded", onDOMLoaded, false);
225 })(); 228 })();
OLDNEW
« no previous file with comments | « firstRun.html ('k') | skin/firstRun.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld