UNPKG

scrive

Version:

ERROR: No README.md file found!

77 lines (69 loc) 3.02 kB
<script> if (typeof (IN) !== 'undefined') { delete IN; } </script> <script type="text/javascript" src="https://platform.linkedin.com/in.js"> api_key: 78zale6kbvwlfw // authorize: true onLoad: onLinkedInLoad </script> <script> // Setup an event listener to make an API call once auth is complete function onLinkedInLoad() { var connectButton = $("span[id*=title-text]")[0]; $(connectButton).html("Connect with LinkedIn"); IN.Event.on(IN, "auth", getProfileData); } // // Handle the successful return from the API call // function onSuccess(data) { // console.log(data); // {{vm.verifyLinkedIn(data)}}; // } // // // Handle an error response from the API call // function onError(error) { // console.log(error); // } // Use the API call wrapper to request the member's basic profile data function getProfileData() { // pass user info to angular angular.element('script.ng-scope').scope().$apply( function($scope) { $scope.getLinkedInData(); } ); // IN.API.Raw("/people/~:(id,first-name,last-name,public-profile-url,picture-url,email-address,picture-urls::(original))").result(onSuccess).error(onError); } </script> <h2>PROFILE SETTING</h2> <p style="color: #ec6386">{{vm.accountError}}</p> <div class=""> <div class=""> <div class="clickable" ng-click="vm.showBasicInfo()">Basic Information</div> <div class="clickable" ng-click="vm.showVerification()">Verification</div> <div class=""><a href="http://www.standin.is/#faq" target="_blank" >Frequently Asked Question</a></div> <div class=""><a href="mailto:team@acmelaw.is">Contact Us</a></div> <div class="clickable" ng-click="vm.showReviews()">My Reviews</div> <div class="clickable" ng-click="vm.logout()">Logout</div> </div> <table class="reviews-table" ng-if="vm.isShowingReviews"> <tr class="standin-row" ng-repeat="review in vm.reviews"> <td><img src="{{review.pictureUrl}}" alt=""></td> <td> <uib-rating style="color: green" ng-model="review.rating" max=5 read-only="true" on-hover="hoveringOver(value)" on-leave="overStar = null" titles="['one','two','three']" aria-labelledby="default-rating"></uib-rating> <div class="">{{review.comment}}</div> <div class="">{{review.userName}} - {{review.createdAt | date: 'MMM dd, yyyy'}}</div> </td> </tr> </table> <div class="" ng-show="vm.isShowingVerification"> <span>Connect with LinkedIn</span> <span ng-show="vm.user.verifiedWithLinkedIn">Connected</span> <span class="" ng-hide="vm.user.verifiedWithLinkedIn"><script type="in/Login"></script></span> </div> <div class="" ng-include="'login/onboarding/onboarding.html'" ng-if="vm.isShowingBasicInfo"></div> </div>