Add Intel copyright header.
[profile/ivi/cowhide.git] / examples / widget-gallery / javascripts / widget-gallery.js
1 /*
2  * Copyright (c) 2012, Intel Corporation.
3  *
4  * This program is licensed under the terms and conditions of the
5  * Apache License, version 2.0.  The full text of the Apache License is at
6  * http://www.apache.org/licenses/LICENSE-2.0
7  *
8  */
9
10 $(function() {
11     $.cowhide.initThemeEngine({
12         path: '../..'
13     });
14     $('#night-mode-toggle').click(function() {
15         $.cowhide.toggleNightMode();
16     });
17
18     $('#driving-mode-toggle').click(function() {
19         $.cowhide.toggleDrivingMode();
20     });
21
22     $('form#font-size-test button').click(function() {
23         var $form = $(this).closest('form');
24         var $input = $form.find('input');
25         var val = $input.val();
26
27         $('.btn').css('font-size', val + 'px');
28     })
29 });