Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
  2. <head>
  3. <title>Sharegate Control Shape</title>
  4.  
  5. <!--[if gte mso 9]><xml>
  6. <mso:CustomDocumentProperties>
  7.     <mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
  8.     <mso:MasterPageDescription msdt:dt="string"></mso:MasterPageDescription>
  9.     <mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106601</mso:ContentTypeId>
  10.     <mso:TargetControlType msdt:dt="string">;#Content Web Parts;#SearchResults;#</mso:TargetControlType>
  11.     <mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
  12. </mso:CustomDocumentProperties>
  13. </xml><![endif]-->
  14. </head>
  15. <body>
  16.     <script>
  17.         $includeCSS(this.url, "~sitecollection/style library/Shape/css/component.css");
  18.     </script>
  19. <div>
  20. <!--#_
  21. if (!$isNull(ctx.ClientControl) && !$isNull(ctx.ClientControl.shouldRenderControl) && !ctx.ClientControl.shouldRenderControl()){return "";}
  22.  
  23. RegisterSod('snap.svg-min.js', Srch.U.replaceUrlTokens('~sitecollection/style library/Shape/js/snap.svg-min.js'));
  24.  
  25. ctx.ListDataJSONGroupsKey = "ResultTables";
  26. ctx["CurrentItems"] = ctx.ListData.ResultTables[0].ResultRows;
  27. var siteURL = SP.PageContextInfo.get_siteAbsoluteUrl();
  28.  
  29. AddPostRenderCallback(ctx, function () {
  30.     function init() {
  31.         var speed = 250,
  32.             easing = mina.easeinout;
  33.  
  34.         [].slice.call ( document.querySelectorAll( '#grid > a' ) ).forEach( function( el ) {
  35.             var s = Snap( el.querySelector( 'svg' ) ), path = s.select( 'path' ),
  36.                 pathConfig = {
  37.                     from : path.attr( 'd' ),
  38.                     to : el.getAttribute( 'data-path-hover' )
  39.                 };
  40.  
  41.             el.addEventListener( 'mouseenter', function() {
  42.                 path.animate( { 'path' : pathConfig.to }, speed, easing );
  43.             } );
  44.  
  45.             el.addEventListener( 'mouseleave', function() {
  46.                 path.animate( { 'path' : pathConfig.from }, speed, easing );
  47.             } );
  48.         } );
  49.     }
  50.  
  51.     if (typeof mina === "undefined") {
  52.         EnsureScriptFunc('snap.svg-min.js', null, init);
  53.     } else {
  54.         init();
  55.     }
  56. });_#-->
  57. <div class="container demo-1">
  58.             <section id="grid" class="grid clearfix"> _#= ctx.RenderItems(ctx) =#_ </section>
  59.             </div></div>
  60. </body>
  61. </html>