Solved

Help with coding -  basic web development

Posted on 2013-12-30
2
349 Views
Last Modified: 2014-01-02
See the example here:

http://www.ministryideaz.com/New-World-Translation-Reference-Edition-cover-p/bilar.htm

Waaaay at the bottom of the screen is a widget for chat.

This is based on the following HTML which is included in the template for my website:

<!--START Chat Widget -->
<!--If you already have jquery on the page you don't need to insert this script tag-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>

<link href="https://d218iqt4mo6adh.cloudfront.net/assets/widget_embed_191.css" media="screen" rel="stylesheet" type="text/css" />
<!--If you already have fancybox on the page this script tag should be omitted-->
<script src="https://d218iqt4mo6adh.cloudfront.net/assets/widget_embed_libraries_191.js" type="text/javascript"></script>

                <script>
                        
                        // ********************************************************************************
                        // This needs to be placed in the document body where you want the widget to render
                        // ********************************************************************************
                        
                        new DESK.Widget({ 
                                version: 1, 
                                site: 'ministryideaz.desk.com', 
                                port: '80', 
                                type: 'chat', 
                                displayMode: 1,  //0 for popup, 1 for lightbox
                                features: {  
                                        offerAlways: false, 
                                        offerAgentsOnline: false, 
                                        offerRoutingAgentsAvailable: true,  
                                        offerEmailIfChatUnavailable: true 
                                },  
                                fields: { 
                                        ticket: { 
                                                // desc: &#x27;&#x27;,
                                // labels_new: &#x27;&#x27;,
                                // priority: &#x27;&#x27;,
                                // subject: &#x27;&#x27;,
                                // custom_order_number: &#x27;&#x27;,
                                // custom_topic: &#x27;&#x27;
                                        }, 
                                        interaction: { 
                                                // email: &#x27;&#x27;,
                                // name: &#x27;&#x27;
                                        }, 
                                        chat: { 
                                                //subject: '' 
                                        }, 
                                        customer: { 
                                                // company: &#x27;&#x27;,
                                // desc: &#x27;&#x27;,
                                // first_name: &#x27;&#x27;,
                                // last_name: &#x27;&#x27;,
                                // locale_code: &#x27;&#x27;,
                                // title: &#x27;&#x27;,
                                // custom_orderid: &#x27;&#x27;
                                        } 
                                } 
                        }).render();  
                        
                        
                    var $ = jQuery.noConflict();
      
                        
                    $(document).ready(function() { 
                    
						$("#triggeremail").click(function() { $('#assistly-widget-1 a').click(); }); 
						setTimeout(function() {
						if ($(".a-desk-widget-chat").prop('href').indexOf("widget/emails/new") > -1){$(".a-assistly-widget-chat").hide();$("#assistly-widget-email").show();
						}
						else{$("#assistly-widget-1").show()
						}

													  }, 1000);

					 console.log($(".a-desk-widget-chat")); });
					 
					 
                        
                </script>
                
                
                
                
               <style>
				#assistly-widget-1 {
					display:none;
				}
				.assistly-widget a {
					min-height: 40px !important;
					width: 226px !important;
					background-image: url('https://desk-customers.s3.amazonaws.com/ministryideaz/online-csupport.png') !important;
					background-position: 0px 0px !important;
				}

				.assistly-widget a:hover {
					min-height: 40px !important;
					width: 226px !important;
					background-image: url('https://desk-customers.s3.amazonaws.com/ministryideaz/online-csupport-hover.png') !important;
					background-position: 0px 0px !important;
				}

				.hidden {
					display:none;
				}
				
				#triggeremail {
				min-height: 40px !important;
			    width: 226px !important;
				background-image: url('https://desk-customers.s3.amazonaws.com/ministryideaz/offline-csupport.png') !important;
				background-position: 0px 0px !important;
				display: block !important;
				}
				
				#triggeremail:hover {
				min-height: 40px !important;
			    width: 226px !important;
				background-image: url('https://desk-customers.s3.amazonaws.com/ministryideaz/offline-csupport-hover.png') !important;
				background-position: 0px 0px !important;
				display: block !important;
				cursor: pointer;
				}
				

				</style>
				
				
				
				<span class="assistly-widget hidden" id="assistly-widget-email" >
		<span id="triggeremail"></span>

				</span>

<!—END Chat Widget -->

Open in new window


What I would like to do is make this hover at the bottom of the page. I'm not sure if "hover" is the correct term. The idea is you shouldn't need to scroll to the bottom to see it. It should always be there.

Also I would prefer it to be bottom-right instead of bottom-left.

Any suggestions?
0
Comment
Question by:gregholl
2 Comments
 
LVL 5

Accepted Solution

by:
DamjanDemsar earned 500 total points
ID: 39747696
add
position:fixed;
bottom: 5px;
right: 5px;

to the #trigeremail css in bilar.htm (line 1545)
0
 
LVL 1

Author Closing Comment

by:gregholl
ID: 39750885
You are an absolute genius! hehe. Thanks so much!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Cannot scroll down on html page 2 26
Flexbox in CSS3 2 26
Change month dropdown 5 15
Bootstap Icons 3 21
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now