{-# LANGUAGE
    TemplateHaskell
  , QuasiQuotes
  , OverloadedStrings
  #-}

module Templates.MainScripts where

import Text.Julius
import qualified Data.Text.Lazy as LT

mainScripts :: LT.Text
mainScripts = renderJavascript $ mainScripts' undefined
  where
  mainScripts' = [julius|

$(document).ready( function() {
  $("#navBar-menu-button").on("click", function() {
    $("#sideBar").sidebar('toggle');
  });

  $("#navBar-services-button").on("hover", function() {
    $("#navBar-services-button").popup({
      popup: '#navBar-services'
    });
  });

  $(".dropdown").dropdown();

  $("hr").replaceWith("<div class='ui divider'></div>");
});


  |]
