aboutsummaryrefslogtreecommitdiffstats
path: root/vid/src/main/webapp/app/fusion/external/ebz/js
diff options
context:
space:
mode:
authorjimmydot <jf2512@att.com>2017-05-07 14:58:24 -0400
committerjimmydot <jf2512@att.com>2017-05-07 14:58:24 -0400
commit3982f4f67314ec37fd9b22ae54049958af777c1b (patch)
tree72111b7c13ee7529cce1ea4c8d83c89fdd164450 /vid/src/main/webapp/app/fusion/external/ebz/js
parent00e0d25933699f9e39c3f0b86c983165a1e3e330 (diff)
[VID-6] Initial rebase push
Change-Id: I9077be9663754d9b22f77c6a7b3109b361b39346 Signed-off-by: jimmydot <jf2512@att.com>
Diffstat (limited to 'vid/src/main/webapp/app/fusion/external/ebz/js')
-rw-r--r--vid/src/main/webapp/app/fusion/external/ebz/js/attHeaderSnippet.js210
-rw-r--r--vid/src/main/webapp/app/fusion/external/ebz/js/footer.js110
2 files changed, 0 insertions, 320 deletions
diff --git a/vid/src/main/webapp/app/fusion/external/ebz/js/attHeaderSnippet.js b/vid/src/main/webapp/app/fusion/external/ebz/js/attHeaderSnippet.js
deleted file mode 100644
index 2c0dfc37..00000000
--- a/vid/src/main/webapp/app/fusion/external/ebz/js/attHeaderSnippet.js
+++ /dev/null
@@ -1,210 +0,0 @@
-/* Popup Box function */
-(function(){
-
- $.fn.popbox = function(options){
- settings = $.extend({
- selector : this.selector,
- open : '.openpopbox',
- box : '.box1',
- arrow : '.arrow',
- arrow_border : '.arrow-border',
- close : '.close'
- }, options);
-
- var methods = {
- open: function(event){
- event.preventDefault();
- var pop = $(this);
- var box = $(this).parent().find(settings['box']);
- box.find(settings['arrow']).css({'left': box.width()/2 - 10 + 46});
- box.find(settings['arrow_border']).css({'left': box.width()/2 - 10 - 63});
- if(box.css('display') == 'block'){
- /* methods.close();
- setTimeout(function(){ $(".btn-panel-vertical,#actionsDropDown").css('z-index','999'); },200);
- // $(".btn-panel-vertical,#actionsDropDown").css('z-index','999');
- if($(window).scrollTop() > 20){
- setTimeout(function(){ $(".btn-panel-vertical,#actionsDropDown").css('z-index','-999'); },200);
- // $(".btn-panel-vertical,#actionsDropDown").css('z-index','-999');
- };*/
- $('.box1').fadeIn('slow');
- } else {
- $('.chatBox').fadeOut('fast');
- $(".btn-panel-vertical,#actionsDropDown").css('z-index','-999');
- if(box.attr('target') == 'auth'){
- box.find(settings['arrow']).css({'left': box.width()/2 + 36});
- box.css({'display': 'block', 'top': 0, 'left': ((pop.parent().parent().width()/2) -box.width()/2 ) - 90});
- }
- else{
- box.find(settings['arrow']).css({'left': box.width()/2 - 42});
- box.css({'display': 'block', 'top': 0, 'left': ((pop.parent().parent().width()/2) -box.width()/2-15 )});
- box.find("#header_login_id").focus();
- box.find('#header_password').val('');
- }
- }
- },
-
- close: function(){
- $(settings['box']).fadeOut("fast");
- }
- };
-
- $(document).bind('keyup', function(event){
- if(event.keyCode == 27){
- setTimeout(function(){ $(".btn-panel-vertical,#actionsDropDown").css('z-index','999'); },200);
- // $(".btn-panel-vertical,#actionsDropDown").css('z-index','999');
- if($(window).scrollTop() > 20){
- // setTimeout(function(){ $(".btn-panel-vertical,#actionsDropDown").css('z-index','-999'); },200);
- $(".btn-panel-vertical,#actionsDropDown").css('z-index','-999');
- };
- methods.close();
- }
- });
- // Close chat-box and popup on clicking out of chat-box
- $(document).bind('click', function(event){
- if(!($(event.target).closest('.chatBox').length || $(event.target).hasClass('chatIcon') || $(event.target).closest(settings['selector']).length)){
- methods.close();
- if ($("#actionsDropDown").css('z-index')=='-999'){
- setTimeout(function(){ $(".btn-panel-vertical,#actionsDropDown").css('z-index','999'); },200);
- }
- if($(window).scrollTop() > 20){
- setTimeout(function(){ $(".btn-panel-vertical,#actionsDropDown").css('z-index','-999'); },200);
- // $(".btn-panel-vertical,#actionsDropDown").css('z-index','-999');
- };
-
- $('.chatBox').fadeOut('fast');
-
- }
- });
-
- return this.each(function(){
-
- $(this).css({'width': $(settings['box']).width()}); // Width needs to be set otherwise popbox will not move when window resized.
- $(settings['open'], this).bind('click', methods.open);
- $(".btn-panel-vertical,#actionsDropDown").css('z-index','-999');
- $(settings['open'], this).parent().find(settings['close']).bind('click', function(event){
- // $(".btn-panel-vertical,#actionsDropDown").css('z-index','999');
- setTimeout(function(){ $(".btn-panel-vertical,#actionsDropDown").css('z-index','999'); },200);
- methods.close();
- });
- });
- }
-
-}).call(this);
-
-
-$('.popbox').popbox();
-
-$(function(){
- var displayName = "";
- if($("#reg-fn-ln-id").length > 0){
- var fnln = $("#reg-fn-ln-id").val().length;
- if(fnln > 0){
- var fnVar = $("#reg-fname-id").val();
- var lnVar = $("#reg-lname-id").val();
- var numChars = 13;
- var nameLen = fnVar.length + lnVar.length + 1; // 1 for space between the first name and the last name
- if(fnVar != " " && lnVar != " "){
- if(nameLen <= numChars){
- displayName = fnVar+" "+lnVar;
- }else if(nameLen <= (numChars * 2)){
- displayName = fnVar+"<br/>"+lnVar;
- }else
- {
- if(fnVar.length < numChars && lnVar.length > numChars){ //Smaller first name and longer last name
- displayName = fnVar+"<br/>"+lnVar.substring(0,numChars-1)+"...";
- }
-
- if(fnVar.length >= numChars ){ //Longer first name
- // 2 = 1 for elipses, 1 for space between the first name and last name
- longLName = numChars - ((fnVar.substring(numChars,fnVar.length)).length + 2);
- displayName = fnVar.substring(0,numChars)+"<br/>"+fnVar.substring(numChars,fnVar.length)+" "+lnVar.substring(0,longLName)+"...";
- }
- }
- }
- else{
- displayName = fnVar+" "+lnVar;
- }
- }
-
- $("#reg-userName").html(displayName);
- }
-});
-
-/* ClickToChat ANONYMOUS FUNCTION DEFINITION *
- * =============================================== *
- * On clicking the chat icon displays the chat box */
-(function(){
-
- var chatbox = $('.chatBox');
-
- // var actionsDropDown = $('#actionsDropDown');
- var methods = {
- open: function(){chatbox.css('display','block');},
- close: function(){chatbox.fadeOut('fast');}
- };
- $('.chatIcon').click(function(){
- if (chatbox.css('display') == 'block'){
- methods.close();
- setTimeout(function(){ $(".btn-panel-vertical,#actionsDropDown").css('z-index','999'); },200);
- // $(".btn-panel-vertical,#actionsDropDown").css('z-index','999');
- if($(window).scrollTop() > 20){
- setTimeout(function(){ $(".btn-panel-vertical,#actionsDropDown").css('z-index','-999'); },200);
- // $(".btn-panel-vertical,#actionsDropDown").css('z-index','-999');
- };
- } else {
- $(".btn-panel-vertical,#actionsDropDown").css('z-index','-999');
- methods.open();
- $(settings['box']).fadeOut("fast");
- }
- });
-
- // Close chat-box on clicking cross icon
- $('.circle_close_chat').click(function(){
- // $(".btn-panel-vertical,#actionsDropDown").css('z-index','999');
- setTimeout(function(){ $(".btn-panel-vertical,#actionsDropDown").css('z-index','999'); },200);
- methods.close();
- if($(window).scrollTop() > 20){
- setTimeout(function(){ $(".btn-panel-vertical,#actionsDropDown").css('z-index','-999'); },200);
- // $(".btn-panel-vertical,#actionsDropDown").css('z-index','-999');
- };
- });
-
- // Close chat-box on Escape key press
- $(document).bind('keyup', function(event){
- if(event.keyCode == 27){
- setTimeout(function(){ $(".btn-panel-vertical,#actionsDropDown").css('z-index','999'); },200);
- methods.close();
- if($(window).scrollTop() > 20){
- setTimeout(function(){ $(".btn-panel-vertical,#actionsDropDown").css('z-index','-999'); },200);
- //$(".btn-panel-vertical,#actionsDropDown").css('z-index','-999');
- };
- }
- });
-
- // Close chat-box on clicking out of chat-box
- // $(document).bind('click', function(event){
-
- // console.log(event.target,"2");
- // if(!($(event.target).closest('.chatBox').length || $(event.target).hasClass('chatIcon'))) {
- // event.preventDefault();
- // // console.log($(event.target).closest(settings['selector']).length);
- // console.log($(event.target).closest('. ').length);
- // console.log($(event.target).hasClass('chatIcon'));
-
-
- // // $(".btn-panel-vertical,#actionsDropDown").css('z-index','999');
- // methods.close();
- // if ($("#actionsDropDown").css('z-index')=='-999') {
- // $(".btn-panel-vertical,#actionsDropDown").css('z-index','999');
- // };
- // // if (flag!="clicked") {
- // // if ($('.box').css('display') == 'block' || $('.chatBox').css('display') == 'block' ){
- // // $(".btn-panel-vertical,#actionsDropDown").css('z-index','-999');
- // // } else {
- // // $(".btn-panel-vertical,#actionsDropDown").css('z-index','999');
- // // }
- // // }
- // }
- // });
-
-})(); \ No newline at end of file
diff --git a/vid/src/main/webapp/app/fusion/external/ebz/js/footer.js b/vid/src/main/webapp/app/fusion/external/ebz/js/footer.js
deleted file mode 100644
index 4cc2d2a4..00000000
--- a/vid/src/main/webapp/app/fusion/external/ebz/js/footer.js
+++ /dev/null
@@ -1,110 +0,0 @@
-var feedbackText, pageAddress;
-(function ( $ ) {
- $(document).on('click', '.feedbackButtonDiv', function (e) {
- $(".feedbackSection").slideToggle(600, function(){
- if($(".feedbackButton").hasClass("closeFeedbackButton")) {
- $(".footerContainer .feedbackButton").html("Feedback<span class='icon-chevron-down'></span>");
- $(".footerContainer .feedbackButton").removeClass("closeFeedbackButton");
- } else {
- $(".footerContainer .feedbackButton").html("Close<span class='icon-chevron-up'></span>");
- $(".footerContainer .feedbackButton").addClass("closeFeedbackButton");
- $(".footerContainer .feedbackText").focus();
- }
-
- });
- });
-
- $(document).on('click', '.closeFeedback', function (e) {
- $(".feedbackSection").slideUp(600, function(){
-
- });
- });
-
- $(document).on('click keypress keyup blur paste','textarea[maxlength]', function(e) {
- var maxlength = $(this).attr('maxlength');
- var val = $(this).val();
-
- if (val.length > maxlength) {
- $(this).val(val.slice(0, maxlength));
- }
- });
-
- $(document).on('click', '.feedbackSubmitButton', function (e) {
- var feedbackTextTemp = $(".feedbackText").val();
- feedbackText = $.trim(feedbackTextTemp);
- var feedbackData = feedbackText;
- if (feedbackText != null && feedbackText != '') {
- $.ajax({
- type: "post",
- contentType :'application/json',
- dataType: 'json',
- data: feedbackData,
- url: "/ebiz/dashboard/feedback/createfeedback",
- success: function (data) {
- if (data.success) {
- $(".feedbackSection").slideUp(600, function() {
- $(".feedbackText").val("");
- $(".footerContainer .feedbackButton").html("Feedback<span class='icon-chevron-down'></span>");
- $(".footerContainer .feedbackButton").removeClass("closeFeedbackButton");
- $(".feedbackButtonDiv").slideUp(600);
- $(".readFeedBackMessage").text(data.feedBackMessage);
- $(".feedbackResultMsg, #feedbackResultDivider").slideDown(600);
- $(".readFeedBackMessage").focus();
- });
- } else if (typeof console == "object") {
-
- }
- },
- error: function () {
-
- }
- });
- } else {
- e.preventDefault();
- if (typeof console == 'object') {
- console.log("Invalid Input String");
- }
- }
-
- });
-
- // Click function definition for OK button in feedback success message
- $(document).on('click', '.feedbackMsgOKButton', function(e) {
- $(".feedbackResultMsg, #feedbackResultDivider").slideUp(600, function(){
- $(".readFeedBackMessage").text("");
- });
- $(".feedbackButtonDiv").slideDown(600, function() {
- $('.feedbackButton').focus();
- });
- });
-
-}( jQuery ));
-
-$(function() {
- var footerHeight = 0,
- footerTop = 0,
- $footer = $("#footer");
-
- positionFooter();
-
-
- function positionFooter() {
-
- footerHeight = $footer.height();
- footerTop = ($(window).scrollTop() + $(window).height() - footerHeight) + "px";
-
- if (($(document.body).height() + footerHeight) < $(window).height()) {
- $footer.addClass('stickyFooter')
- .animate({
- top: footerTop
- }, -1)
- } else {
- $footer.removeClass('stickyFooter');
- }
-
- }
-
- $(window)
- .scroll(positionFooter)
- .resize(positionFooter)
-}); \ No newline at end of file