Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED jQuery datepicker
#4
Special for you, i installed Iridium and insert datepicker. Use my complete code.
All Head.inc.php
Code:
<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); }
/****************************************************
*
* @File:             head.inc.php
* @Package:        GetSimple
* @Action:        Iridium theme for GetSimple CMS
*
*****************************************************/
?>
    <!-- Site Title -->
    <title><?php get_page_clean_title(); ?> &mdash; <?php get_site_name(); ?></title>    
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <!--[if lte IE 8]><script src="<?php get_theme_url(); ?>js/html5shiv.js"></script><![endif]-->
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
        <script src="<?php get_theme_url(); ?>/js/skel.min.js"></script>
        <script src="<?php get_theme_url(); ?>/js/skel-panels.min.js"></script>
        <script> var prefixUrl = '<?php get_theme_url(); ?>'; </script>
        <script src="<?php get_theme_url(); ?>/js/init.js"></script>
        
        <link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
        <script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
        
        <noscript>
            <link rel="stylesheet" href="<?php get_theme_url(); ?>/css/skel-noscript.css" />
            <link rel="stylesheet" href="<?php get_theme_url(); ?>/css/style.css" />
            <link rel="stylesheet" href="<?php get_theme_url(); ?>/css/style-desktop.css" />
        </noscript>
        <!--[if lte IE 8]><link rel="stylesheet" href="<?php get_theme_url(); ?>css/ie/v8.css" /><![endif]-->
        <!--[if lte IE 9]><link rel="stylesheet" href="<?php get_theme_url(); ?>css/ie/v9.css" /><![endif]-->    
    <link href='http://fonts.googleapis.com/css?family=Arimo:400,700' rel='stylesheet' type='text/css'>
    <script>
        $(document).ready(function() {
            $("#datepicker").datepicker();
        });
        </script>
    <?php get_header(); ?>

For example template.php
Code:
<p>Date: <input type="text" id="datepicker"></p>

It's work!
[Image: 5479dfe5a098c.png]
Reply


Messages In This Thread
jQuery datepicker - by fugo - 2014-11-28, 03:42:56
RE: jQuery datepicker - by Kapelius - 2014-11-29, 21:32:28
RE: jQuery datepicker - by fugo - 2014-11-29, 23:33:16
RE: jQuery datepicker - by Kapelius - 2014-11-30, 01:03:22
RE: jQuery datepicker - by fugo - 2014-11-30, 01:31:34
RE: jQuery datepicker - by Kapelius - 2014-11-30, 01:45:54
RE: jQuery datepicker - by fugo - 2014-11-30, 02:07:05
RE: jQuery datepicker - by shawn_a - 2014-11-30, 02:58:09
RE: jQuery datepicker - by fugo - 2014-11-30, 06:09:29
RE: jQuery datepicker - by shawn_a - 2014-11-30, 07:19:42



Users browsing this thread: 2 Guest(s)