This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
</head> | |
<body style="font-family: arial"> | |
<h1 style="font-family: 'Arial Black'"><?php echo $task_name; ?> Completed</h1> | |
<table style="border:1px solid #999; padding:2px"> | |
<tr style="background: #333; color: #FFF;"> | |
<td style="padding:5px;border-right:1px solid #999;border-bottom:1px solid #999;"><strong>Location:</strong></td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#add_to_list').on('change', function($e) { | |
if ($e.added !== undefined) { | |
$.ajax({ | |
url: '/api/add_to_list.json', | |
data: {list_id: $e.added.id, movie_id: $id, user_id: $user_id}, | |
success: function() { | |
add_notify($movie_title, $e.added.text, $poster); | |
} | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(data.cast).each(function($index) | |
{ | |
// Set defaults | |
$profile_path = "/assets/img/missing_" + (($index % 5) + 1) + ".png"; | |
$position_offsets = ""; | |
// Check to see if image exists | |
if(this.profile_path != null) | |
{ | |
$profile_path = "http://cf2.imgobject.com/t/p/w185" + this.profile_path; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url = '/api/movie.json/' + $id; | |
$.ajax({ | |
url: url, | |
success: function(data) | |
{ | |
$(data.cast).each(function($index) | |
{ | |
// pseudocode in php | |
echo "this is the title" . data.name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array ( | |
'title' => 'The Avengers', | |
'overview' => 'When an unexpected enemy emerges that threatens global safety and security, Nick Fury, Director of the international peacekeeping agency known as S.H.I.E.L.D., finds himself in need of a team to pull the world back from the brink of disaster. Spanning the globe, a daring recruitment effort begins!', | |
'backdrop_path' => '/hbn46fQaRmlpBuUrEiFqv0GDL6Y.jpg', | |
'runtime' => 143, | |
'tagline' => 'Some assembly required.', | |
'collection' => 'The Avengers Collection', | |
'rating' => 'PG-13', | |
'cast' => | |
array ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is the array that I'd be digging into. | |
array( | |
"results" => array( | |
"list" => array( | |
"content" => "content stuff" | |
) | |
) | |
) | |
This is my code and I think it's really ugly in it's current state. I'm trying to get the info in "content": |
NewerOlder