$(function() {

	var data = [
		{
		logo: "/lanhu-bootstrap/assets/img/SketchPngff4baa52e24274f171eff0ccc6e01f1890b55b11bafffb477ce1f23bc465c249.png",
		name: "Helen studio CHINA | interior",
		isfollow: false,
		title: "Title for the post",
		data: "2021.09.11  17:23",
		txt: "	It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).",
		list: [
			"/lanhu-bootstrap/assets/img/landingpage/SketchPng7d6f19699512d467d9c2c6735798214c0ad484446e64adfb3f1215fb3d1cf5bb.png",
			"/lanhu-bootstrap/assets/img/landingpage/SketchPng7d6f19699512d467d9c2c6735798214c0ad484446e64adfb3f1215fb3d1cf5bb.png",
			"/lanhu-bootstrap/assets/img/landingpage/SketchPng677c41a514ce39003ea3ad7eed2f45da074f91790561db2f64b930d36743a708.png",
			
		]
	},{
		logo: "/lanhu-bootstrap/assets/img/moments_add.png",
		name: "Helen studio CHINA2 | interior2",
		isfollow: true,
		title: "Title for the post22",
		data: "2022.09.11  17:23",
		txt: "	222It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).",
		list: [
			"/lanhu-bootstrap/assets/img/landingpage/SketchPng7d6f19699512d467d9c2c6735798214c0ad484446e64adfb3f1215fb3d1cf5bb.png",
			"/lanhu-bootstrap/assets/img/landingpage/SketchPng09b8d1f99fd42b318c6bc00cfecbc1aebaf6950c531649da656adbf849d84188.png",
			"/lanhu-bootstrap/assets/img/landingpage/SketchPng11f2551c8c79f2a1f49994d7331b917307433c1dfc9bb864ab7941f9e98dacfd.png",
			"/lanhu-bootstrap/assets/img/landingpage/SketchPng51f6302e0405645a754c13a5832916e57e46357a62248bba0c66a45fb3cf7e34.png",
			"/lanhu-bootstrap/assets/img/landingpage/SketchPng89e9554a3265a9c1f8d56f3f7dd92e7e0af6a15c8c7b8aa9fddfe992757c51a0.png",
			"/lanhu-bootstrap/assets/img/landingpage/SketchPng90c84aeaabbe84af30410a95aa5645e88733bd80ac3f5fa3f01f88542155891b.png",
			"/lanhu-bootstrap/assets/img/landingpage/SketchPng92fd1d5f74f2e41c540e2262f216f9fb69b010979d402fadb516bca3fe317bc2.png",
			"/lanhu-bootstrap/assets/img/landingpage/SketchPng321a6596588e6a2a48470c19b29e6164b134792adc609d7f631c7548339e50fe.png",
			"/lanhu-bootstrap/assets/img/landingpage/SketchPng631eafd3e8e1a7ffdc4c6e213f31b0af54b76cc064bf269f4c39fceac1e788b8.png",
			
			
			
			
		]
	},
	
	]
	var obj=window.localStorage.getItem("postmoment")
	if(obj){
		obj=JSON.parse(obj)
		data=[
			obj,
			...data
		]
	}
	const tmphtml = template("flow-photos", {
		objs: data
	});
	
	$(".imguploadlist").append(tmphtml);
	$('.imguploadspan').viewer({
		url: 'data-original',
	});
	$(".Follow").click(function(){
		$(this).parent().find(".Follow").show()
		$(this).hide()
	})
	$('.selectpicker').selectpicker({
		template:{
			caret:'<span class="sel-icon glyphicon glyphicon-menu-down"></span>'
		}
	});
})
