php - Why JavaScript won't run properly on CodeIgniter -


good evening indonesia.
nice meet all.

okay, have problem javascript on codeigniter.
html (view), want run simple javascript, know javascript can run properly.
cannot see "alert" dialog javascript. what's wrong code?

<html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>aluminium - persebaran alumni</title>  <link href="<?php echo base_url('assets/css/bootstrap.min.css');?>" rel="stylesheet"> <link href="<?php echo base_url('assets/css/datepicker3.css');?>" rel="stylesheet"> <link href="<?php echo base_url('assets/css/styles.css');?>" rel="stylesheet">  <!--icons--> <script src="<?php echo base_url('assets/js/lumino.glyphs.js');?>"></script>  <!-- javascript menampilkan lokasi saat ini --> <script type="text/javascript">   function all() {     alert("hello");   }   var centregot = false; </script>  <!-- konfigurasi library googlemaps oleh biostall --> <?php   echo $map['js'] ?>  <!--[if lt ie 9]> <script src="js/html5shiv.js"></script> <script src="js/respond.min.js"></script> <![endif]-->  </head>  <body onload="all()">   <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">     <div class="container-fluid">       <div class="navbar-header">         <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#sidebar-collapse">           <span class="sr-only">toggle navigation</span>           <span class="icon-bar"></span>           <span class="icon-bar"></span>           <span class="icon-bar"></span>         </button>         <a class="navbar-brand" href="#"><span>aluminium</span> pencarian alumni</a>         <ul class="user-menu">           <li class="dropdown pull-right">             <a href="#" class="dropdown-toggle" data-toggle="dropdown"><svg class="glyph stroked male-user"><use xlink:href="#stroked-male-user"></use></svg> <?php echo $nama; ?> <span class="caret"></span></a>             <ul class="dropdown-menu" role="menu">               <li><a href="<?php echo site_url('alumni/profile_alumni');?>"><svg class="glyph stroked male-user"><use xlink:href="#stroked-male-user"></use></svg> profile</a></li>               <li><a href="<?php echo site_url('alumni/logout');?>"><svg class="glyph stroked cancel"><use xlink:href="#stroked-cancel"></use></svg> logout</a></li>             </ul>           </li>         </ul>       </div>      </div><!-- /.container-fluid -->   </nav>    <div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar">     <ul class="nav menu">       <li><a href="<?php echo site_url('alumni');?>"><svg class="glyph stroked dashboard-dial"><use xlink:href="#stroked-dashboard-dial"></use></svg> dashboard</a></li>       <li><a href="<?php echo site_url('tracerstudy');?>"><svg class="glyph stroked table"><use xlink:href="#stroked-table"></use></svg> tracer study</a></li>       <li class="active"><a href="<?php echo site_url('alumni/persebaranalumni');?>"><svg class="glyph stroked map"><use xlink:href="#stroked-map"></use></svg> pencarian alumni</a></li>       <li><a href="<?php echo site_url('alumni/infografik');?>"><svg class="glyph stroked line-graph"><use xlink:href="#stroked-line-graph"></use></svg> informasi grafik</a></li>       <li><a href="<?php echo site_url('alumni/stakeholder');?>"><svg class="glyph stroked pencil"><use xlink:href="#stroked-pencil"></use></svg> stakeholder</a></li>     </ul>     <div class="attribution">template <a href="http://www.medialoot.com/item/lumino-admin-bootstrap-template/">medialoot</a><br/><a href="http://www.glyphs.co" style="color: #333;">icons glyphs</a></div>   </div><!--/.sidebar-->    <div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">     <div class="row">       <div class="col-lg-12">         <h1 class="page-header">peta aluminium</h1>       </div>     </div><!--/.row-->     <div class="row">       <div class="col" id="lat_lng">         <form name="rd" method="post" action="index.html">           <input type="text" name="long" id="long" value="">           <input type="text" name="lat" id="lat" value="">         </form>       </div>     </div>     <div class="row">       <div class="col-lg-12">         <h3 class="haversin"><?php echo anchor('alumni/proseshaversine', 'haversine');?></h3>       </div>     </div>     <div class="row">       <div class="col-lg-12">         <?php           echo $map['html'];         ?>       </div>     </div>   </div>  <!--/.main-->     <script src="<?php echo base_url('assets/js/jquery-1.11.1.min.js');?>"></script>   <script src="<?php echo base_url('assets/js/bootstrap.min.js');?>"></script>   <script src="<?php echo base_url('assets/js/chart.min.js');?>"></script>   <script src="<?php echo base_url('assets/js/chart-data.js');?>"></script>   <script src="<?php echo base_url('assets/js/easypiechart.js');?>"></script>   <script src="<?php echo base_url('assets/js/easypiechart-data.js');?>"></script>   <script src="<?php echo base_url('assets/js/bootstrap-datepicker.js');?>"></script>   <script>     $('#calendar').datepicker({     });      !function ($) {       $(document).on("click","ul.nav li.parent > > span.icon", function(){         $(this).find('em:first').toggleclass("glyphicon-minus");       });       $(".sidebar span.icon").find('em:first').addclass("glyphicon-plus");     }(window.jquery);      $(window).on('resize', function () {       if ($(window).width() > 768) $('#sidebar-collapse').collapse('show')     })     $(window).on('resize', function () {       if ($(window).width() <= 767) $('#sidebar-collapse').collapse('hide')     })   </script> </body> </html> 

end javascript want running properly.

<!-- javascript menampilkan lokasi saat ini --> <script type="text/javascript">   function all() {     alert("hello");   }   var centregot = false; </script> 

i'm sorry if newbie's question. i'm happy, , lot advice or suggestion.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -