-
Notifications
You must be signed in to change notification settings - Fork 0
/
nyam-p.js
2 lines (2 loc) · 4.16 KB
/
nyam-p.js
1
2
//Плагин Клубничка by im_misterio + пароль от Nemiroff
!function(){"use strict";function t(t){var e,i,a,n=new Lampa.Reguest,o=new Lampa.Scroll({mask:!0,over:!0,step:250}),r=[],l=$("<div></div>"),s=$('<div class="category-full"></div>');this.create=function(){var e=this;return this.activity.loader(!0),n.silent(t.url,this.build.bind(this),function(){var t=new Lampa.Empty;l.append(t.render()),e.start=t.start,e.activity.loader(!1),e.activity.toggle()}),this.render()},this.next=function(){var e=this;a||t.page<20&&(a=!0,t.page++,n.silent(t.url+"?pg="+t.page,function(t){e.append(t),t.length&&(a=!1),Lampa.Controller.enable("content")}))},this.append=function(t){var a=this;t.forEach(function(t){var n=Lampa.Template.get("card",{title:t.name,release_year:t.time+(t.quality?" / "+t.quality:"")});n.addClass("card--collection"),n.find(".card__img").attr("src",t.picture),n.on("hover:focus",function(){i=n[0],o.update(n,!0),e.find(".info__title").text(t.name),e.find(".info__title-original").text(t.time+(t.quality?" / "+t.quality:""));var l=Math.ceil(r.length/7)-1;Math.ceil(r.indexOf(n)/7)>=l&&a.next()}),n.on("hover:enter",function(){var e={title:t.name,url:t.video};Lampa.Player.play(e),Lampa.Player.playlist([e])}),s.append(n),r.push(n)})},this.build=function(t){(e=Lampa.Template.get("info")).find(".info__rate,.info__right").remove(),o.render().addClass("layer--wheight").data("mheight",e),l.append(e),l.append(o.render()),this.append(t),o.append(s),this.activity.loader(!1),this.activity.toggle()},this.start=function(){Lampa.Controller.add("content",{toggle:function(){Lampa.Controller.collectionSet(o.render()),Lampa.Controller.collectionFocus(i||!1,o.render())},left:function(){Navigator.canmove("left")?Navigator.move("left"):Lampa.Controller.toggle("menu")},right:function(){Navigator.move("right")},up:function(){Navigator.canmove("up")?Navigator.move("up"):Lampa.Controller.toggle("head")},down:function(){Navigator.canmove("down")&&Navigator.move("down")},back:function(){Lampa.Storage.set("sisi_pass",""),Lampa.Activity.backward()}}),Lampa.Controller.toggle("content")},this.pause=function(){},this.stop=function(){},this.render=function(){return l},this.destroy=function(){n.clear(),o.destroy(),e&&e.remove(),l.remove(),s.remove(),n=null,r=null,l=null,s=null,e=null}}window.plugin_sisi_ready||function(){window.plugin_sisi_ready=!0,Lampa.Storage.set("sisi_pass",""),Lampa.Component.add("sisi",t);var e=[{title:"eporner.com",url:"http://vi.sisi.am/epr"},{title:"spankbang.com",url:"http://vi.sisi.am/sbg"},{title:"xhamster.com",url:"http://vi.sisi.am/xmr"},{title:"porntrex.com",url:"http://vi.sisi.am/ptx"},{title:"hqporner.com",url:"http://vi.sisi.am/hqr"},{title:"xvideos.com",url:"http://vi.sisi.am/xds"},{title:"xnxx.com",url:"http://vi.sisi.am/xnx"},{title:"ebalovo.porn",url:"http://vi.sisi.am/elo"},{title:"bongacams.com",url:"http://vi.sisi.am/bgs"},{title:"chaturbate.com",url:"http://vi.sisi.am/chu"}];Lampa.Listener.follow("app",function(t){if("ready"==t.type){var i=$('<li class="menu__item selector focus" data-action="sisi"><div class="menu__ico"><svg width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-name="Layer 1"><path d="M18,5h1V6a1,1,0,0,0,2,0V5h1a1,1,0,0,0,0-2H21V2a1,1,0,0,0-2,0V3H18a1,1,0,0,0,0,2ZM7,7V17a1,1,0,0,0,2,0V7A1,1,0,0,0,7,7ZM21.6,9a1,1,0,0,0-.78,1.18,9,9,0,1,1-7-7,1,1,0,1,0,.4-2A10.8,10.8,0,0,0,12,1,11,11,0,1,0,23,12a10.8,10.8,0,0,0-.22-2.2A1,1,0,0,0,21.6,9ZM11,9v1a3,3,0,0,0,.78,2A3,3,0,0,0,11,14v1a3,3,0,0,0,3,3h1a3,3,0,0,0,3-3V14a3,3,0,0,0-.78-2A3,3,0,0,0,18,10V9a3,3,0,0,0-3-3H14A3,3,0,0,0,11,9Zm5,6a1,1,0,0,1-1,1H14a1,1,0,0,1-1-1V14a1,1,0,0,1,1-1h1a1,1,0,0,1,1,1Zm0-6v1a1,1,0,0,1-1,1H14a1,1,0,0,1-1-1V9a1,1,0,0,1,1-1h1A1,1,0,0,1,16,9Z" fill="#ffffff"/></svg></div><div class="menu__text">Для взрослых</div></li>');i.on("hover:enter",function(){Lampa.Input.edit({value:"",title:"Введите пароль доступа",free:!0},function(t){"sisipas"==t?Lampa.Select.show({title:"Каталог",items:e,onSelect:function(t){Lampa.Activity.push({url:t.url,title:t.title,component:"sisi",page:1})},onBack:function(){Lampa.Controller.toggle("menu")}}):Lampa.Controller.toggle("menu")})}),$(".menu .menu__list").eq(0).append(i)}})}()}();