This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript" src="https://valuestream.iljmp.com/improvely.js"></script> | |
| <script type="text/javascript"> | |
| improvely.init('valuestream', 1); | |
| $(document).ready(function() { | |
| $('#yourbutton').click(function() { | |
| improvely.conversion({ | |
| goal: 'CTA Button Clicked' | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Include Required Prerequisites --> | |
| <script type="text/javascript" src="//cdn.jsdelivr.net/jquery/2.1.3/jquery.min.js"></script> | |
| <script type="text/javascript" src="//cdn.jsdelivr.net/momentjs/2.9.0/moment.min.js"></script> | |
| <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap/3.3.2/css/bootstrap.css" /> | |
| <!-- Include Date Range Picker --> | |
| <script type="text/javascript" src="//cdn.jsdelivr.net/bootstrap.daterangepicker/1/daterangepicker.js"></script> | |
| <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap.daterangepicker/1/daterangepicker-bs3.css" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('input[name="daterange"]').daterangepicker(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('input[name="daterange"]').daterangepicker( | |
| { | |
| format: 'YYYY-MM-DD', | |
| startDate: '2013-01-01', | |
| endDate: '2013-12-31', | |
| ranges: { | |
| 'Today': [moment(), moment()], | |
| 'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], | |
| 'Last 7 Days': [moment().subtract(6, 'days'), moment()], | |
| 'Last 30 Days': [moment().subtract(29, 'days'), moment()], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //create a new date range picker | |
| $('#daterange').daterangepicker({ startDate: '03/05/2005', endDate: '03/06/2005' }); | |
| //change the selected date range of that picker | |
| $('#daterange').data('daterangepicker').setStartDate('03/01/2014'); | |
| $('#daterange').data('daterangepicker').setEndDate('03/31/2014'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var drp = $('#daterange').data('daterangepicker'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('#daterange').daterangepicker({ | |
| locale: { cancelLabel: 'Clear' } | |
| }); | |
| $('#daterange').on('cancel.daterangepicker', function(ev, picker) { | |
| //do something, like clearing an input | |
| $('#daterange').val(''); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('#daterange').daterangepicker(); | |
| $('#daterange').on('apply.daterangepicker', function(ev, picker) { | |
| console.log(picker.startDate.format('YYYY-MM-DD')); | |
| console.log(picker.endDate.format('YYYY-MM-DD')); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <input type="text" name="daterange" value="01/01/2015 - 01/31/2015" /> | |
| <script type="text/javascript"> | |
| $(function() { | |
| $('input[name="daterange"]').daterangepicker(); | |
| }); | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('#button').click(function() { | |
| improvely.conversion({ | |
| goal: 'clicked button' | |
| }); | |
| }); |