{-# LANGUAGE QuasiQuotes #-}

module Web.HCheat where
  
import Prelude hiding ((.))
import MPS.TH

-- google analytics
analytics x = [$here|
<script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>

<script type="text/javascript">
  try {
|] ++ "var pageTracker = _gat._getTracker('" ++ x ++ "');" ++ [$here|
    pageTracker._trackPageview();
  } catch(err) {}
</script>
|]

lorem = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."

rzg = [$here|
夜来风雨损余芳数片衰红落槛傍媚景背人容易去半轩飞絮日空长
从来不信相思切及至如今倍感伤独立黄昏绣帘外可堪新月露圆光
|]