diff --git a/.idea/QA-tests.iml b/.idea/QA-tests.iml
new file mode 100644
index 0000000..c956989
--- /dev/null
+++ b/.idea/QA-tests.iml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..28a804d
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..3c73526
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..63b3d33
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,366 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ languages
+ email
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ DEFINITION_ORDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1628807610989
+
+
+ 1628807610989
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Register.css b/Register.css
index fdcaeb4..c617c5e 100644
--- a/Register.css
+++ b/Register.css
@@ -1,7 +1,7 @@
h1
{
-font-size: 36px!important;
+ font-size: 36px!important;
color: #02569c !important;
}
@@ -36,11 +36,11 @@ font-size: 36px!important;
@media (max-width: 1200px ) and (min-width:768px)
{
-.navbar-nav>li
-{
- margin-left: 0;
+ .navbar-nav>li
+ {
+ margin-left: 0;
-}
+ }
}
@media (min-width: 700px ) and (max-width: 991px)
@@ -58,14 +58,14 @@ font-size: 36px!important;
border-radius: 0px;
color: #fff;
line-height: 24px;
- display: inline-block;
+ display: inline-block;
}
.navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus, .navbar-inverse .navbar-nav > li > a:hover
{
- background-color: #00579a !important;
+ background-color: #00579a !important;
color: #fff;
}
@@ -82,7 +82,7 @@ font-size: 36px!important;
padding-top: 10px;
padding-bottom: 10px;
color: #fff;
- background: #2e2e2e;
+ background: #2e2e2e;
}
@@ -250,15 +250,15 @@ label
}
.form-group .form-control {
- padding: 7px 12px;
- border-color:#555;
- box-shadow: none !important;
+ padding: 7px 12px;
+ border-color:#555;
+ box-shadow: none !important;
outline: none !important;
}
.form-control:focus {
box-shadow:none !important;
- outline: 0 none !important;
+ outline: 0 none !important;
border-color:#555 !important;
}
@@ -293,7 +293,7 @@ label
}
.gridStyle {
- /* border: 1px solid rgb(212,212,212);*/
+ /* border: 1px solid rgb(212,212,212);*/
width: 400px;
height: 800px
}
@@ -330,7 +330,7 @@ label
.contextshw
{
- position:absolute;
+ position:absolute;
margin-top: -5px;
display: inline;
background-color: white;
@@ -338,18 +338,18 @@ label
font-size: 15px;
z-index: 999999 !important;
}
- .contextshw ul li
- {
- list-style: none;
- margin: 5px;
- }
+.contextshw ul li
+{
+ list-style: none;
+ margin: 5px;
+}
- .dropdown-menu > li:hover > ul{
+.dropdown-menu > li:hover > ul{
position:absolute;
- left:100% !important;
+ left:100% !important;
top: -2px;
- background-color: rgba(101,183,234,.85) !important;
- display:inline-block;
+ background-color: rgba(101,183,234,.85) !important;
+ display:inline-block;
}
.dropdown-menu > li:hover > ul >li > a:hover{
@@ -370,27 +370,27 @@ label
padding: 8px 15px;
}
- .childmenu{
- display: none;
- list-style: none;
- padding-left: 0px !important;
- margin-top: 10px;
- }
+.childmenu{
+ display: none;
+ list-style: none;
+ padding-left: 0px !important;
+ margin-top: 10px;
+}
#eid:hover + .tooltptext
{
- display: block;
+ display: block;
Z-index:99999999 !important;
position:relative;
top:10%;
font-size: 12px;
border: 1px solid;
- background-color: ghostwhite;
+ background-color: ghostwhite;
}
.tooltptext
{
-display:none;
+ display:none;
}
diff --git a/Register.js b/Register.js
index 940f07c..bc7464e 100644
--- a/Register.js
+++ b/Register.js
@@ -1,14 +1,10 @@
-/**
- * Created by Sujith Alla on 4/22/2016.
- */
-
$(document).ready(function()
{
$("#secondpassword").keypress(function(evt)
{
- if (evt.keyCode==13)
+ if (evt.keyCode===13)
{
var password1= document.getElementById("firstpassword").value;
@@ -37,10 +33,10 @@ $(document).ready(function()
})
$(document).on('click',function()
{
- if ($("ul.ui-corner-all")[0])
- {
- $("ul.ui-corner-all")[0].parentElement.style.display="none";
- }
+ if ($("ul.ui-corner-all")[0])
+ {
+ $("ul.ui-corner-all")[0].parentElement.style.display="none";
+ }
})
@@ -50,11 +46,11 @@ $(document).ready(function()
$.getJSON('https://restcountries.eu/rest/v1/all').success(function(data)
{
- var cdd= $('#countries');
+ var cdd= $('#countries');
for ( var i=0; i< data.length;i++)
{
var countryname= data[i].name;
- cdd.append($(" ").attr("value",countryname).text(countryname));
+ cdd.append($(" ").attr("value",countryname).text(countryname));
}
});
@@ -76,7 +72,7 @@ $(document).ready(function()
}).error(function(err)
{
- // console.log(JSON.stringify(err));
+ // console.log(JSON.stringify(err));
});
$.getJSON('Skills.json').success(function(data)
diff --git a/angcontroller.js b/angcontroller.js
index f41ff3b..f5483d7 100644
--- a/angcontroller.js
+++ b/angcontroller.js
@@ -1,8 +1,3 @@
-/**
- * Created by Sujith Alla on 3/30/2016.
- */
-
-
var app=angular.module("Registerform",['ui.grid','ui.grid.edit','ngCookies','ui.grid.pagination']);
@@ -26,11 +21,11 @@ var FormCtrl=function ($scope,dataservice)
var uniqueness=true;
- $scope.myData=[{FirstName:$scope.FirstName,
+ $scope.myData=[{FirstName:$scope.FirstName,
LastName:$scope.LastName,
Email:$scope.EmailAdress,
- Phone : $scope.Phone,
- Gender:$scope.radiovalue}];
+ Phone : $scope.Phone,
+ Gender:$scope.radiovalue}];
$scope.emaildata=[
{
@@ -39,7 +34,7 @@ var FormCtrl=function ($scope,dataservice)
}
]
- userdetails=$scope.myData;
+ userdetails=$scope.myData;
emaildetails=$scope.emaildata;
existingdata=dataservice.rtrndata();
existingdata.filter(function(el)
@@ -53,11 +48,11 @@ var FormCtrl=function ($scope,dataservice)
{
$scope.EmailExists=true;
}
- if( el.Phone==$scope.Phone)
- {
+ if( el.Phone==$scope.Phone)
+ {
- $scope.PhoneExists=true;
- }
+ $scope.PhoneExists=true;
+ }
})
if (uniqueness)
@@ -95,7 +90,7 @@ var LoginCtrl=function($scope,dataservice)
var obj={
Email: response.data[i].Email,
Password:response.data[i].Password
- }
+ }
newdata.push(obj);
}
@@ -110,25 +105,25 @@ var LoginCtrl=function($scope,dataservice)
if ((el.Email==$scope.Email)&&(el.Password==$scope.Password))
{
window.location.href="Register.html"
- redrct=true;
+ redrct=true;
}
})
emailvalid=false;
- if (!redrct)
- {
- if (emailvalid)
- {
- $scope.showerror=false;
- }
- else
- {
- $scope.showerror=true;
- }
+ if (!redrct)
+ {
+ if (emailvalid)
+ {
+ $scope.showerror=false;
+ }
+ else
+ {
+ $scope.showerror=true;
+ }
- }
+ }
}
}
@@ -146,7 +141,7 @@ var gridctrl=function ($scope,dataservice,$cookies,$interval)
$scope.LastNamevalid=true;
$scope.Phonevalid=true;
- $scope.shows='true';
+ $scope.shows='true';
$scope.stop=function(evt)
{
evt.stopImmediatePropagation();
@@ -156,15 +151,15 @@ var gridctrl=function ($scope,dataservice,$cookies,$interval)
{
$(evt.currentTarget.parentElement.parentElement).dblclick();
}
- $scope.Delete= function(row)
+ $scope.Delete= function(row)
{
- if (confirm("Delete the record permanently")==true)
- {
- var index=$scope.gridoptions.data.indexOf(row.entity);
- $scope.gridoptions.data.splice(index,1)
- dataservice.deletedata(row.entity.id);
- $cookies.cmprsnt=false;
- }
+ if (confirm("Delete the record permanently")==true)
+ {
+ var index=$scope.gridoptions.data.indexOf(row.entity);
+ $scope.gridoptions.data.splice(index,1)
+ dataservice.deletedata(row.entity.id);
+ $cookies.cmprsnt=false;
+ }
$scope.Emailvalid=true;
$scope.FirstNamevalid=true;
$scope.Gendervalid=true;
@@ -180,44 +175,44 @@ var gridctrl=function ($scope,dataservice,$cookies,$interval)
enableSorting: true,
- columnDefs: [
- {
- field:"Email",
- enableCellEdit: false,
- enableSorting: true
-
- },
- {
- field:"FirstName",
- enableCellEdit: false
- },
- {
- field:"Gender",
- enableCellEdit: false
- },
- {
- field:"LastName",
- enableCellEdit: false
- },
- {
- field:"Phone",
- enableCellEdit: false
- },
- {
- field:"id",
- visible:false
- },
- {
- field:"Action",
- enableCellEdit: false,
- cellTemplate: ' ' +
- ' Save ' +
- ' Cancel
' +
- ' '
- }
-
- ]
+ columnDefs: [
+ {
+ field:"Email",
+ enableCellEdit: false,
+ enableSorting: true
+
+ },
+ {
+ field:"FirstName",
+ enableCellEdit: false
+ },
+ {
+ field:"Gender",
+ enableCellEdit: false
+ },
+ {
+ field:"LastName",
+ enableCellEdit: false
+ },
+ {
+ field:"Phone",
+ enableCellEdit: false
+ },
+ {
+ field:"id",
+ visible:false
+ },
+ {
+ field:"Action",
+ enableCellEdit: false,
+ cellTemplate: ' ' +
+ ' Save ' +
+ ' Cancel
' +
+ ' '
+ }
+
+ ]
}
@@ -226,20 +221,20 @@ var gridctrl=function ($scope,dataservice,$cookies,$interval)
function(response)
{
var newdata=[] ;
- for (var i=0; i ';
$(parentdivs[i]).append(inputtxt);
$(parentdivs[i]).css("background-color","white");
@@ -551,82 +546,82 @@ app.directive('userClickSelect', function()
app.directive('delClick', function($cookies)
{
-return {
- restrict:"E",
- link : function(scope,el,attrs)
- {
-
- el.on('click', function(evt)
+ return {
+ restrict:"E",
+ link : function(scope,el,attrs)
{
- evt.stopPropagation();
- })
- el.on('contextmenu',function(evt)
- {
- evt.preventDefault();
- evt.stopPropagation();
- var divs;
- if (!$cookies.cmprsnt)
+ el.on('click', function(evt)
{
+ evt.stopPropagation();
+ })
- this.parentElement.children[2].style.display="";
- $cookies.cmprsnt=true;
-
- }
- else
+ el.on('contextmenu',function(evt)
{
- $(document).click();
- }
-
+ evt.preventDefault();
+ evt.stopPropagation();
+ var divs;
+ if (!$cookies.cmprsnt)
+ {
+ this.parentElement.children[2].style.display="";
+ $cookies.cmprsnt=true;
- $(document).click(function()
- {
- if ($cookies.cmprsnt)
+ }
+ else
{
- $('.contextshw').css('display','none');
- $cookies.cmprsnt=false;
+ $(document).click();
}
- })
- $(document).on('contextmenu',function()
- {
- if ($cookies.cmprsnt)
+ $(document).click(function()
{
- $('.contextshw').css('display','none');
- $cookies.cmprsnt=false;
- }
+ if ($cookies.cmprsnt)
+ {
+ $('.contextshw').css('display','none');
+ $cookies.cmprsnt=false;
+ }
- })
+ })
- $('.contextshw').on('click',function(evt)
- {
- evt.preventDefault();
- evt.stopPropagation();
- })
+ $(document).on('contextmenu',function()
+ {
+ if ($cookies.cmprsnt)
+ {
+ $('.contextshw').css('display','none');
+ $cookies.cmprsnt=false;
+ }
- $('.contextshw>ul>li').on('click',function(evt)
- {
- evt.preventDefault();
- evt.stopPropagation();
- if (this.innerText=='Cancel')
+
+ })
+
+ $('.contextshw').on('click',function(evt)
{
- $('.contextshw').css('display','none');
- }
- else {
+ evt.preventDefault();
+ evt.stopPropagation();
+ })
- }
- })
- {
+ $('.contextshw>ul>li').on('click',function(evt)
+ {
+ evt.preventDefault();
+ evt.stopPropagation();
+ if (this.innerText=='Cancel')
+ {
+ $('.contextshw').css('display','none');
+ }
+ else {
- }
+ }
+ })
+ {
- })
+ }
+
+ })
+ }
}
-}
})
app.directive('saveClick', function(dataservice)
@@ -641,21 +636,21 @@ app.directive('saveClick', function(dataservice)
var emlid=presentemail[0].id;
var updobj = {
- Email: thisdivs[4].firstChild.innerText.trim(),
- FirstName: thisdivs[3].firstChild.innerText.trim(),
- Gender: thisdivs[2].firstChild.innerText.trim(),
- LastName: thisdivs[1].firstChild.innerText.trim(),
- Phone: thisdivs[0].firstChild.innerText.trim()
+ Email: thisdivs[4].firstChild.innerText.trim(),
+ FirstName: thisdivs[3].firstChild.innerText.trim(),
+ Gender: thisdivs[2].firstChild.innerText.trim(),
+ LastName: thisdivs[1].firstChild.innerText.trim(),
+ Phone: thisdivs[0].firstChild.innerText.trim()
- };
+ };
var updeml=
- {
- Email:thisdivs[4].firstChild.innerText.trim(),
- Passowrd:presentemail[0].Passowrd
- }
+ {
+ Email:thisdivs[4].firstChild.innerText.trim(),
+ Passowrd:presentemail[0].Passowrd
+ }
- dataservice.updatedata(updobj, objid).then(dataservice.updateemail(updeml,emlid));
+ dataservice.updatedata(updobj, objid).then(dataservice.updateemail(updeml,emlid));
}
},
@@ -679,34 +674,34 @@ app.directive('saveClick', function(dataservice)
var presentemail=emaildata.filter(function(el)
{
- return el.Email==thisdivs[4].firstChild.innerText.trim();
+ return el.Email==thisdivs[4].firstChild.innerText.trim();
});
- $(this.parentElement.parentElement.parentElement).css("background-color","");
+ $(this.parentElement.parentElement.parentElement).css("background-color","");
if ((thisdivs[3].children[1].firstElementChild.value.trim()==undefined || thisdivs[3].children[1].firstElementChild.value.trim()===""))
{
scope.$root.$$childTail.FirstNamevalid=false;
}
- if (thisdivs[1].children[1].firstElementChild.value.trim()==undefined || thisdivs[1].children[1].firstElementChild.value.trim()==="")
- {
- scope.$root.$$childTail.LastNamevalid=false;
- }
- if (!(thisdivs[2].children[1].firstElementChild.value.trim().toUpperCase()=="MALE" || thisdivs[2].children[1].firstElementChild.value.trim().toUpperCase()=="FEMALE"))
- {
- scope.$root.$$childTail.Gendervalid=false;
- }
- if (!(thisdivs[0].children[1].firstElementChild.value.trim().length==10 && !isNaN(thisdivs[0].children[1].firstElementChild.value.trim())))
- {
- scope.$root.$$childTail.Phonevalid=false;
- }
- if ( !(pattern.test(thisdivs[4].children[1].firstElementChild.value.trim())))
- {
- scope.$root.$$childTail.Emailvalid=false;
- }
+ if (thisdivs[1].children[1].firstElementChild.value.trim()==undefined || thisdivs[1].children[1].firstElementChild.value.trim()==="")
+ {
+ scope.$root.$$childTail.LastNamevalid=false;
+ }
+ if (!(thisdivs[2].children[1].firstElementChild.value.trim().toUpperCase()=="MALE" || thisdivs[2].children[1].firstElementChild.value.trim().toUpperCase()=="FEMALE"))
+ {
+ scope.$root.$$childTail.Gendervalid=false;
+ }
+ if (!(thisdivs[0].children[1].firstElementChild.value.trim().length==10 && !isNaN(thisdivs[0].children[1].firstElementChild.value.trim())))
+ {
+ scope.$root.$$childTail.Phonevalid=false;
+ }
+ if ( !(pattern.test(thisdivs[4].children[1].firstElementChild.value.trim())))
+ {
+ scope.$root.$$childTail.Emailvalid=false;
+ }
@@ -722,7 +717,7 @@ app.directive('saveClick', function(dataservice)
allowupdate=false;
}
- existingdata.filter(function(el)
+ existingdata.filter(function(el)
{
if ((el.Email.trim()==thisdivs[4].children[1].firstElementChild.value.trim() || el.Phone.trim()==thisdivs[0].children[1].firstElementChild.value.trim()) && (!(objid==el.id)))
{
@@ -822,19 +817,19 @@ app.directive('multiSelect',function()
{
- $scope.languageslist=data;
- $scope.menucontainer=$('
');
+ $scope.languageslist=data;
+ $scope.menucontainer=$('
');
$scope.menucontainer.css('display','none');
$scope.menu=$('');
- $scope.menucontainer.append($scope.menu[0]);
- // var cdd= $('#Languages');
+ $scope.menucontainer.append($scope.menu[0]);
+ // var cdd= $('#Languages');
for ( var i=0; i< data.length;i++)
{
var Language= data[i].name;
- var newelem=$compile( ' ' + Language + ' ' )($scope);
+ var newelem=$compile( ' ' + Language + ' ' )($scope);
- // $scope.menu.append($(" " + Language + " ").attr("value",Language)[0]);
- $scope.menu.append(newelem);
+ // $scope.menu.append($(" " + Language + " ").attr("value",Language)[0]);
+ $scope.menu.append(newelem);
}
@@ -850,19 +845,19 @@ app.directive('multiSelect',function()
{
- scope.getdata();
- setTimeout(function()
- {
- el.append(scope.menucontainer[0]);
+ scope.getdata();
+ setTimeout(function()
+ {
+ el.append(scope.menucontainer[0]);
- },500);
- el.on('click',function(evt)
- {
- evt.stopPropagation();
- var self=this;
+ },500);
+ el.on('click',function(evt)
+ {
+ evt.stopPropagation();
+ var self=this;
- this.children[1].style.display="block";
- })
+ this.children[1].style.display="block";
+ })
}
}
@@ -870,53 +865,53 @@ app.directive('multiSelect',function()
})
app.directive('listSelect', function () {
- return{
- restrict:"A",
- scope : false,
- link : function(scope,el,attr)
- {
-
- el.hover(function()
- {
- el.addClass('ui-elemfocus');
- }, function()
- {
- el.removeClass('ui-elemfocus')
- }
- )
- el.on('click',function()
- {
-
- $("#msdd").append( $("
")
- .addClass("ui-autocomplete-multiselect-item")
- .text(this.innerText).click(function(evt)
- {
- evt.stopPropagation();
- }).append($(" ").addClass("ui-icon ui-icon-close").css('cursor','pointer')
- .click(function(evt)
- {
- evt.stopPropagation();
- var nde=this.parentElement.innerText;
-
-
- var newelem=$("ul.ui-corner-all > li").filter(function(index)
- {
- if (this.innerText.trim()==nde)
- {
+ return{
+ restrict:"A",
+ scope : false,
+ link : function(scope,el,attr)
+ {
+
+ el.hover(function()
+ {
+ el.addClass('ui-elemfocus');
+ }, function()
+ {
+ el.removeClass('ui-elemfocus')
+ }
+ )
+ el.on('click',function()
+ {
+
+ $("#msdd").append( $("
")
+ .addClass("ui-autocomplete-multiselect-item")
+ .text(this.innerText).click(function(evt)
+ {
+ evt.stopPropagation();
+ }).append($(" ").addClass("ui-icon ui-icon-close").css('cursor','pointer')
+ .click(function(evt)
+ {
+ evt.stopPropagation();
+ var nde=this.parentElement.innerText;
+
+
+ var newelem=$("ul.ui-corner-all > li").filter(function(index)
+ {
+ if (this.innerText.trim()==nde)
+ {
this.style.display="";
- }
+ }
- })
- this.parentElement.parentElement.nextElementSibling.children[0];
- $(this.parentElement).remove();
+ })
+ this.parentElement.parentElement.nextElementSibling.children[0];
+ $(this.parentElement).remove();
- })));
- this.style.display="none";
+ })));
+ this.style.display="none";
- })
+ })
- }
- }
+ }
+ }
})
diff --git a/index.html b/index.html
index 830abc0..a347f73 100644
--- a/index.html
+++ b/index.html
@@ -5,104 +5,110 @@
-
+
-
-
+
+
+
+
+
+
+
+
+
Register
-
-
+
+