AUTOMATIC TIME-BASED PUBLISHING

Date Checker

Testing a date checker simple function, for dynamic publishing rules. To convert date to timestamp, use input fields below:


To check the behavior of this page, insert current date (plus 1-2 minutes) in the above input field, than get the timestamp and insert it in the hidden input fields contained in this page (by editing the HTML source). Then wait for the time you set, refreshing the browser: you should see appear or disappear the boxes below.
The mechanism uses following logic: if both the hidden input (data_start and data_end) are 0, the box is always visible. If the first is not 0 (data_start), the box will be visible after that date. If the second is not 0 (data_end), the box will be visible until that date. If both inputs are not 0, the box will be visible in that time range.



In primis: lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean fermentum ipsum eu sapien. Mauris pretium, elit sed scelerisque blandit, mauris diam fermentum nisl, quis vulputate odio quam id lacus. Vestibulum tellus. Suspendisse dictum elementum nisi. Quisque placerat varius nisl. Maecenas laoreet nibh sed nisi. In quis eros. Donec erat.

Secundis: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean fermentum ipsum eu sapien. Mauris pretium, elit sed scelerisque blandit, mauris diam fermentum nisl, quis vulputate odio quam id lacus. Vestibulum tellus. Suspendisse dictum elementum nisi. Quisque placerat varius nisl. Maecenas laoreet nibh sed nisi. In quis eros. Donec erat.

Sources

HOME