1'use strict'; 2 3(function ($, window, document) { 4 $(function () { 5 $(document).ready(function () { 6 // DOCUMENT READY 7 8 // LOGIN 9 $('#login').on('submit', function(e) { 10 e.preventDefault(); 11 12 $.ajax({ 13 url: '/oauth/token', 14 data: { 15 client_id: $('meta[name="fbci"]').attr('content'), 16 client_secret: $('meta[name="fbcs"]').attr('content'), 17 grant_type: 'password', 18 username: $('#username').val(), 19 password: $('#password').val() 20 }, 21 method: 'POST', 22 dataType: 'JSON', 23 success: function(data) { 24 if ($fbAuth.setToken(data)) { 25 setTimeout(function() { 26 $('#login').unbind().submit(); 27 }, 500); 28 } 29 else { 30 alertify.error('Authentication Error'); 31 } 32 }, 33 error: function (jqXHR, status, errorThrown) { 34 alertify.error('The user credentials were incorrect'); 35 } 36 }); 37 }); 38 }); 39 }); 40}(window.jQuery, window, document));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.