01100101 01110110 01100101 01110010 01111001 01101111
01101110 01100101 00100000 01111001 01101111 01110101
00100000 01101101 01100101 01100101 01110100 00100000
01101001 01110011 00100000 01100110 01101001 01100111
01101000 01110100 01101001 01101110 01100111 00100000
01100001 00100000 01100010 01100001 01110100 01110100
01101100 01100101 00100000 01111001 01101111 01110101
00100000 01101011 01101110 01101111 01110111 00100000
01101110 01101111 01110100 01101000 01101001 01101110
01100111 00100000 01100001 01100010 01101111 01110101
01110100 00101110 00100000 01100010 01100101 00100000
01101011 01101001 01101110 01100100 00101110 00100000
01100001 01101100 01110111 01100001 01111001 01110011
00101110
position.frame_ease_y = (position.y -0.5) * 3;
position.frame_ease_x = (position.x -0.5) * 3;
var frames = document.getElementsByClassName("interaction_frame");
var i;
for (i = 0; i < frames.length; i++) {
var frame_ease_y = position.frame_ease_y * frames[i].getAttribute("data-ease-multiply");
var frame_ease_x = position.frame_ease_x * frames[i].getAttribute("data-ease-multiply");
frames[i].style.transform = "" +
"translateY(" + frame_ease_y + "%) " +
"translateX(" + frame_ease_x + "%)";
frames[i].style.webkitTransform = "" +
"translateY(" + frame_ease_y + "%) " +
"translateX(" + frame_ease_x + "%)";
frames[i].style.MozTransform = "" +
"translateY(" + frame_ease_y + "%) " +
"translateX(" + frame_ease_x + "%)";
frames[i].style.msTransform = "" +
"translateY(" + frame_ease_y + "%) " +
"translateX(" + frame_ease_x + "%)";
frames[i].style.OTransform = "" +
"translateY(" + frame_ease_y + "%) " +
"translateX(" + frame_ease_x + "%)";
<link rel="stylesheet" type="text/css" href="css/project.css">
</head>
<body class="technical">
<div class="interaction_info left">
<div class="frame">
<div class="main">
<span class="interaction_icon"></span>
<span class="icon"></span>
<div class="info">
<span>Technical</span>
</div>
</div>
</div>
</div>
<div class="interaction_info right">
<div class="frame">
<div class="main">
<span class="interaction_icon"></span>
<span class="icon"></span>
<div class="info">
<span>Creative</span>
</div>
</div>
</div>
</div>
<div class="interaction_content">
<div class="interaction_frame" data-frame-id="1" data-ease-multiply="1.4">
<div class="technical">
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Aliquyam eratLorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, At accusam aliquyam diam diam dolore dolores duo eirmod eos erat, et nonumy sed tempor et et invidunt justo labore Stet clita ea et gubergren, kasd magna no rebum. sanctus sea sed takimata ut vero voluptua. est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat. Consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo
class TrackView(TemplateView):
template_name = "eagle/editor/track.html"
def dispatch(self, request, *args, **kwargs):
service = Service.objects.get(pk=kwargs["service"])
if (request.user.is_authenticated() and service.user == request.user) or request.user.is_superuser:
return super(TrackView, self).dispatch(request, *args, **kwargs)
else:
return redirect(reverse("home"))
def get(self, request, *args, **kwargs):
context = self.get_context_data()
service = Service.objects.get(pk=kwargs["service"])
track, created = Track.objects.get_or_create(service=service, service_track_id=kwargs["track"])
if service.service == SOUNDCLOUD:
client = soundcloud.Client(access_token=service.token)
query = "/tracks/%s" % track.service_track_id
service_track = client.get(query)
track.service_track_data = fetch_track_data(SOUNDCLOUD, service_track, img_size="large")
elif service.service == SPOTIFY:
try:
spotify = spotipy.Spotify(auth=service.token)
service_track = spotify.track(track.service_track_id)
except SpotifyException:
token = spotify_client._refresh_access_token(service.refresh_token)
service.token = token["access_token"]
service.save()
spotify = spotipy.Spotify(auth=service.token)
service_track = spotify.track(track.service_track_id)
track.service_track_data = fetch_track_data(SPOTIFY, service_track)
if not track.duration:
track.duration = track.service_track_data.duration
track.save()
context["service"] = service
context["track"] = track
return self.render_to_response(context)