..

 

 

# Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info

Framer.Info =
	title: ""
	author: "Jong Hyeok Im"
	twitter: ""
	description: ""


# 배경 
scroll_canvans = new ScrollComponent
	x: 0
	y: 0
	width: Screen.width
	height: Screen.height
	backgroundColor: "#fff"
	
	
scroll_canvans.scrollHorizontal = false
	
# 배열 바구니 생성
arrayBox = []

# 배열에 들어가는 Object 생성
for k in [0..4]
	for i in [0..20]
		layerSet = {
			name: 1+ k + "box" + i 
			x: (Screen.width/4)*k + Screen.width/72
			y: (Screen.height/8 + Screen.height/40) * i + Screen.width/72
			width: Screen.height/8
			height: Screen.height/8
			backgroundColor: "#00BCD4"
			borderRadius: Screen.width/4
			html: "#{k}"+"#{i}"
			parent: scroll_canvans.content
			#  여기서 부모님 정해줬는데? 부모를 왜 모를까요?
		}
		arrayBox.push(layerSet)

# Layer를 생성하는 함수
makeLayer1 = (option) ->
	for num of option
		box = new Layer
# 		print option[num]
		for key, value of option[num]
# 			print key, value
			box[key] = value
# 			box.image = "https://source.unsplash.com/category/people/100x100"
			box.onTap ->
				if @.backgroundColor = "#00BCD4"
					@.backgroundColor = "#CDDC39"
				else if(@.backgroundColor = "#CDDC39")
					print "hi"
# 					box.backgroundColor = "green"
			box.style = 
				"font-size" : "#{box.height/2}px",
				"font-weight" : "100"
				"text-align" : "center"
				"line-height" : "#{box.height}px"

# 	print box.key
# makeLayer1(500, 300, "red")
# makeLayer1(layerSet.height, layerSet.width, layerSet.backgroundColor)
makeLayer1(arrayBox)

 

# Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info

Framer.Info =
	title: ""
	author: "Jong Hyeok Im"
	twitter: ""
	description: ""


arrayBox = []
BoxList=[
	{
	No : "Trade1"
	title : "Wood"
	value : "$500"
	},
	{
	No : "Trade2"
	title : "Stone"
	value : "$300"
	},
	{
	No : "Trade3"
	title : "Stell"
	value : "$200"
	}
	{
	No : "Trade4"
	title : "Plastic"
	value : "$100"
	}
	{
	No : "Trade5"
	title : "Plastic"
	value : "$100"
	}
	{
	No : "Trade6"
	title : "Plastic"
	value : "$100"
	}
	{
	No : "Trade7"
	title : "Plastic"
	value : "$100"
	}
	{
	No : ""
	title : "+"
	value : ""
	}
	]

box_pocket= []
textstyle = "text-align": "center", "font-size": "9 px", "color": "#fff"

makeLayer = (items) ->
	for k in [0...items.length]
		data_box = new Layer
			x: Utils.round((k)%3, 1,1)*(Screen.width/3)
			y: Math.floor((k)/3, 0)*(Screen.height/6+40)
			# 내림처리 메소드를 사용// 
			# Math.ceil()올림처리, Math.round()반올림, Math.floor()내림처리
			
			width: Screen.width/3
			height: Screen.height/6
# 			print Math.floor((k)/3, 0)
		box_pocket.push(data_box)

	
		textLayer1 = new Layer
			x: 0
			y: 0
			width: data_box.width
			height: data_box.height/3
			html: items[k].No
			style: textstyle
			parent: data_box
			
		textLayer2 = new Layer
			x: 0
			y: textLayer1.height
			width: textLayer1.width
			height: textLayer1.height
			html: items[k].title
			style: textstyle
			parent: data_box

		textLayer3 = new Layer
			x: 0
			y: textLayer1.height+textLayer2.height
			width: textLayer1.width
			height: textLayer1.height
			html: items[k].value
			style: textstyle
			parent: data_box
			
		if k >= items.length-1
			data_box.onTap ->
				newbox = new Layer
					x: 400
					y: 800
					backgroundColor: "red"
		
print box_pocket
makeLayer(BoxList)

 

Contemplate working for a sports team. Double click “Business Cards.” It will appear that one cheap ray bans business card opens in ray bans sale the window. On sale through the website soon, the charger will cost $40. Complexity is the curse of the digital age. Although many people consider the point guard to be the primary ball handler on the basketball court, more and more shooting guards are also sharing ball handling duties. That’s because the most exciting part about March Madness is the chance for these schools to dream the big dream, and the joy we all get watching those dreams occasionally come true.. He has spent tens of thousands of dollars on tailgating supplies, not only because of his love for the Wolverines, but because of the feeling fake ray bans of community that comes with the pre game celebrations.. At least, he would have, had he ever actually acknowledged their existence.. In depth reviews of TBI are available.19 Briefly, TBI most often signifies loss of consciousness and is arbitrarily termed if the loss of consciousness is up to 30 Alteration in consciousness for up to 24 or posttraumatic amnesia for up to 24 is also accepted under the mild TBI umbrella. The numbers start to rise when you factor in game balls, which are those footballs actually used in regulation. The rookies who get selected in the first draft itself, get the highest salary followed by the ones picked in the second draft and so on. cheap jordans Jolyon Palmer Renault 0 1 19. Since there are obviously no gears in a friggin’ jet engine, the Jet Hayabusa operates more like an automatic scooter you only need a throttle and a brake. This process is known as “wiping” or “screwing over Doctor Who fans.””Bend over.”. So he didn’t make the Baseball Hall of Fame on the first ballot, or the second, or whatever. Recalling the peaceful scene in the little town of Bethlehem, Brooks completed the writing of the lyrics in just one evening. He’s an injured QB or defense slump away from groveling for a job at Baylor University (as Miles is) after being canned by LSU in a few years, even if he does win a National Championship at Baton Rouge.. Also, Moss missing the NFL combine in Indianapolis, prior to the draft that year, was a concern to some NFL teams. Currently TAP’s dividend of cheap oakleys $1.12 a share has a yield of 2.5% but there will be an increase next fake oakleys quarter to either $1.20 to $1.28 bringing the yield to around 2.7%. According to “The Wall Street Journal,” NFL officials state that team owners collectively owe $8.5 billion in debt, and must make several hundred million in interest payments cheap oakley sunglasses each year to financial and insurance companies. Kardashian reactivated his law license to help defend his best friend Kardashian hadn’t practiced law for 20 years before Simpson went on trial, but at the request of lead attorney Robert Shapiro he reactivated his license.

답글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다.