Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
3.1 KiB

  1. {{$live_update}}
  2. {{foreach $threads as $thread}}
  3. <hr class="sr-only" />
  4. <div id="tread-wrapper-{{$thread.id}}" class="tread-wrapper {{if $thread.threaded}}threaded{{/if}} {{$thread.toplevel}} {{$thread.network}} {{if $thread.thread_level==1}}panel-default panel{{/if}} {{if $thread.thread_level!=1}}comment-wrapper{{/if}}" style="{{if $item.thread_level>2}}margin-left: -15px; margin-right:-16px; margin-bottom:-16px;{{/if}}"><!-- panel -->
  5. {{* {{if $thread.type == tag}}
  6. {{include file="wall_item_tag.tpl" item=$thread}}
  7. {{else}}
  8. {{include file="{{$thread.template}}" item=$thread}}
  9. {{/if}} *}} {{include file="{{$thread.template}}" item=$thread}}
  10. </div><!--./tread-wrapper-->
  11. {{/foreach}}
  12. <div id="conversation-end"></div>
  13. {{if $dropping}}
  14. <a id="item-delete-selected" class="" href="#" title="{{$dropping}}" onclick="deleteCheckedItems();return false;" data-toggle="tooltip">
  15. <i class="fa fa-trash" aria-hidden="true"></i>
  16. </a>
  17. <img id="item-delete-selected-rotator" class="like-rotator" src="images/rotator.gif" style="display: none;" />
  18. {{/if}}
  19. <script>
  20. // jquery color plugin from https://raw.github.com/gist/1891361/17747b50ad87f7a59a14b4e0f38d8f3fb6a18b27/gistfile1.js
  21. // next line was commented out because it causes a js bug in firefox
  22. // I leave it here so we can have a look into this later
  23. // (function(d){d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){d.fx.step[e]=function(g){if(!g.colorInit){g.start=c(g.elem,e);g.end=b(g.end);g.colorInit=true}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")"}});function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}if(e=/rgba\(0, 0, 0, 0\)/.exec(f)){return a.transparent}return a[d.trim(f).toLowerCase()]}function c(g,e){var f;do{f=d.css(g,e);if(f!=""&&f!="transparent"||d.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return b(f)}var a={transparent:[255,255,255]}})(jQuery);
  24. var colWhite = {backgroundColor:'#EFF0F1'};
  25. var colShiny = {backgroundColor:'#FCE94F'};
  26. </script>
  27. {{if $mode == display}}
  28. <script>
  29. var id = window.location.pathname.split("/").pop();
  30. $(window).scrollTop($('#item-'+id).position().top);
  31. $('#item-'+id).animate(colWhite, 1000).animate(colShiny).animate(colWhite, 2000);
  32. </script>
  33. {{/if}}