function saveInfo() {
        var pos = 0;
        var teamName = '';
        var sprintTime = '';

        $('.js-save-info').click(function () {

            if ($('.js-position-checkbox').is(':checked')) {
                pos = 1;
            }
            if ($('.js-team-name').val().length > 0) {
                teamName = $('.js-team-name').val();
            }
            if (document.querySelector('input[name="rb"]:checked')) {
                sprintTime = parseInt(document.querySelector('input[name="rb"]:checked').value);
            }

            var inf = {
                position: pos,
                teamsName: teamName,
                sprintWeeks: sprintTime
            }
            chrome.storage.local.set({ 'personalInfo': inf });


            $(this).addClass('saved',{duration:500});
            setTimeout(function(){
                $('.js-save-info').removeClass('saved',{duration:500});
            }, 4000);
        })
    }
/**
    * save first page infos
    * @function saveInfo
    * @memberof popupjs
    */
save first page infos
@function saveInfo
@memberof popupjs
save first page infos @function saveInfo @memberof popupjs
function saveInfo() {
        var pos = 0;
        var teamName = '';
        var sprintTime = '';
        $('.js-save-info').click(function () {
            if ($('.js-position-checkbox').is(':checked')) {
                pos = 1;
            }
            if ($('.js-team-name').val().length > 0) {
                teamName = $('.js-team-name').val();
            }
            if (document.querySelector('input[name="rb"]:checked')) {
                sprintTime = parseInt(document.querySelector('input[name="rb"]:checked').value);
            }
            var inf = {
                position: pos,
                teamsName: teamName,
                sprintWeeks: sprintTime
            }
            chrome.storage.local.set({ 'personalInfo': inf });
            $(this).addClass('saved',{duration:500});
            setTimeout(function(){
                $('.js-save-info').removeClass('saved',{duration:500});
            }, 4000);
        })
    }
function saveInfo ( ) { var pos = 0 ; var teamName = '' ; var sprintTime = '' ; $ ( '.js-save-info' ) . click ( function ( ) { if ( $ ( '.js-position-checkbox' ) . is ( ':checked' ) ) { pos = 1 ; } if ( $ ( '.js-team-name' ) . val ( ) . length > 0 ) { teamName = $ ( '.js-team-name' ) . val ( ) ; } if ( document . querySelector ( 'input[name="rb"]:checked' ) ) { sprintTime = parseInt ( document . querySelector ( 'input[name="rb"]:checked' ) . value ) ; } var inf = { position : pos , teamsName : teamName , sprintWeeks : sprintTime } chrome . storage . local . set ( { 'personalInfo' : inf } ) ; $ ( this ) . addClass ( 'saved' , { duration : 500 } ) ; setTimeout ( function ( ) { $ ( '.js-save-info' ) . removeClass ( 'saved' , { duration : 500 } ) ; } , 4000 ) ; } ) }
save first page infos
 @function saveInfo
 @memberof popupjs
save first page infos @function saveInfo @memberof popupjs