Mr. «Harry Potter»
Milestone-Movies: The Tailor of Panama (2001), Harry Potter and the Philosopher's Stone (2001), Harry Potter and the Chamber of Secrets (2002), Harry Potter and the Prisoner of Azkaban (2004), Harry Potter and the Goblet of Fire (2005), Harry Potter and the Order of the Phoenix (2007), December Boys (2007), Harry Potter and the Half-Blood Prince (2009), Harry Potter and the Deathly Hallows 1&2 (2010/ 2011), The Woman in Black (2012), Horns (2014), The F World (2014), Trainwreck (2015), Frankenstein (2015), Now you see me: Now you don't (2015)
function getCookie(name) {
var cookieValue = null;
if (document.cookie && document.cookie != '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = jQuery.trim(cookies[i]);
// Does this cookie string begin with the name we want?
if (cookie.substring(0, name.length + 1) == (name + '=')) {
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
break;
}
}
}
return cookieValue;
}
$('.up-log').on('click', function () {
var is_authenticated = eval('False'.toLocaleLowerCase());
if (is_authenticated) {
$.post("/api/user_profiling/", {
'csrfmiddlewaretoken': getCookie('csrftoken'),
'object': 'person',
'id': '1142',
'weight': 'share'
});
};
});