1 Reply Latest reply on Jan 13, 2020 2:18 PM by Daniel Merchán

    js not working in webcenter 12c .. when we upload or share path in pages

    Pradeep-India

      js and jquery not working in webcenter 12c ... how to share path in html in new pages ..

       

      i have an script it is working on webcenter 11g but not in 12c...

       

      <!DOCTYPE html>

      <html lang="en">

      <head>

          <meta charset="utf-8">

          <meta http-equiv="X-UA-Compatible" content="IE=edge">

          <meta name="viewport" content="width=device-width, initial-scale=1">

          <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->

          <title>Demo</title>

          <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->

          <script src="/webcenter/content/conn/UCMConnection/path/Enterprise%20Libraries/JStest/jquery-2.1.4.min.js"></script>

          <script src="/webcenter/content/conn/UCMConnection/path/Enterprise%20Libraries/JStest/snowfall.jquery.min.js"></script>

       

          <!-- Bootstrap -->

       

          <style media="screen">

          body{

              font-size: 18px;

            

          }

          .well{

              background: #2C1A33;

      color: #965B5B;

          }

          .santa {

              position: fixed;

              bottom: 10px;

              right: -500px;

          }

          .xmas-tree {

              position: fixed;

              bottom: -20px;

              right: 5px;

          }

          </style>

      </head>

      <body class="well">

      <script type="text/javascript">

          $(document).ready(function() {

       

              var windowWidth = $(document).width();

              var santa = $('.santa');

              santa_right_pos = windowWidth + santa.width();

              santa.right = santa_right_pos;

       

              $(document).snowfall({flakeCount : 100, maxSpeed : 5, maxSize : 5});

       

              function movesanta(){

                  santa.animate({right : windowWidth +  santa.width()},15000, function(){

                      santa.css("right","-500px");

                      setTimeout(function(){

                          movesanta();

                      },10000);

                  });

              }

              movesanta();

          });

          </script>

       

          <!-- Include all compiled plugins (below), or include individual files as needed -->

         

      </body>

      </html>