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

Side by Side Diff: test/js/demo.js

Issue 29361647: Issue 4607 - Default content styles (Closed)
Patch Set: See comments for details. Created Nov. 27, 2016, 9:26 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
« test/index.html ('K') | « test/index.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*!
2 * This file is part of website-defaults
3 * Copyright (C) 2016 Eyeo GmbH
4 *
5 * website-defaults is free software: you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * website-defaults is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with website-defaults. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 /* The following scripts are for demonstration purposes **only** */
20
21 function changeDirection()
juliandoucette 2016/11/27 21:45:41 Note. Seems like we could use this across compone
22 {
23 if (document.dir === "ltr")
24 {
25 document.dir = "rtl";
26 document.getElementById("dir").innerHTML = "Left-to-right";
27 }
28 else
29 {
30 document.dir = "ltr";
31 document.getElementById("dir").innerHTML = "Right-to-left";
32 }
33 }
OLDNEW
« test/index.html ('K') | « test/index.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld