OLD | NEW |
(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() |
| 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 } |
OLD | NEW |