Corinne Dmitruk James Saporito. Term Project documentation. The home page ViewBag.Title = "WelpHome"; }
|
|
- Moses Reed
- 6 years ago
- Views:
Transcription
1 Corinne Dmitruk James Saporito Term Project documentation The home page ViewBag.Title = "WelpHome"; <div class="jumbotron jumbotron-fluid text-center" ng-controller="homecontroller"> <div class="wrapper"> <div class="welp-title"> <h1>welp</h1> <div class="fa fa-yelp"> <div class="search-section"> <form class="form-inline"> <div class="form-group"> <input type="text" class="form-control" placeholder="search" ngmodel="businessnamesearch"/> <div class="form-group"> <a href="#!/searchresults/business/businessnamesearch"> <div id="business" class="btn btn-default" > <img class="search-icon" src=" /> </a> </form> <div class="options"> <ul> <li><a id="food" href="#!/businesslist/food">food</a></li> <li><a id="coffee" href="#!/businesslist/coffee">coffee</a></li> <li><a id="business" href="#!/businesslist/bars">bars</a></li> </ul> <div class="cleveland text-center"> <h3>welp Cleveland</h3>
2 <hr> <div class="places text-center" ng-init="getclevelandtop()"> <div class="display-box"> <!-- <p>barrio</p> --> <div class="box-image"> <img height="200" width="200" ng-src="clelist[0].photourl" /> <div class="name"> <p>clelist[0].name</p> <div class="rating"> <p>stars: clelist[0].stars</p> <div class="location"> <p>clelist[0].address</p> <div class="display-box"> <!-- <p>pour</p> --> <div class="box-image"> <img height="200" width="200" ng-src="clelist[1].photourl" /> <div class="name"> <p>clelist[1].name</p> <div class="rating"> <p>stars: clelist[1].stars</p> <div class="location"> <p>clelist[1].address</p> <div class="display-box"> <!-- <p>heinen's</p> --> <div class="box-image"> <img height="200" width="200" ng-src="clelist[2].photourl" /> <div class="name"> <p>clelist[2].name</p> <div class="rating"> <p>stars: clelist[2].stars</p>
3 <div class="location"> <p>clelist[2].address</p> <link rel="stylesheet" href="content/custom.css"> Results ViewBag.Title = "Results"; <div class="back"> <a type="button" class="btn btn-default" href="#!/">back</a> <hr> <div class="my-container" ng-init="initialize()"> <div class="container" ng-repeat="business in businesslist" > <div class="panel panel-primary"> <div class="panel-heading"><p>business.name</p> <div id="map" class="content" data-toggle="modal" data-target="#mymodal" ngclick="getmodalcontent(business); getmap(business.longitude, business.latitude)"> <div class="top-content"> <div class="photo"><p><img height="100" width="100" ngsrc="business.photourl"/></p> <div class="info"> <p>stars: business.stars</p> <p>@*restaurantspricerange2 (dollar signs)*@</p> <div class="address"> <p>business.address, business.city, business.state</p> <div class="bottom-content"> <div class="review"><p>review: business.review_count</p> <!-- MODAL --> <div class="modal fade" id="mymodal" role="dialog">
4 <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"> </button> <h4 class="modal-title">details</h4> <div class="modal-body"> <div class="map"> <!-- LOAD MAP HERE FROM JS --> <div class="modal-info"> <p>modalobj.address, modalobj.city, modalobj.state, modalobj.postal_code</p> Number goes <div class="hours"> <h3>hours</h3> <div ng-repeat="hour in modalobj.hours"> <p>hour</p> <div class="business-info"> <h3>more Business Info</h3> <div ng-repeat="att in modalobj.attributes"> <p>att</p> <div class="modal-footer"> <a type="button" class="btn btn-default" href="#!/reviews/modalobj.business_id">reviews</a> <button type="button" class="btn btn-default" data-dismiss="modal">close</button> <link rel="stylesheet" href="content/results_page.css">
5 Reviews Layout = class="back"> <a type="button" class="btn btn-default" href="#!/">back</a> <hr> *@ <!-- REVIEWS CONTAINER --> <div class="my-container" ng-init="getreviewdataset()"> <div class="container" ng-repeat="review in reviewlist"> <div class="panel panel-info"> <div class="panel-heading"> <div class="review-content"> <p> review.text </p> The routing for angular (function () var home = angular.module("home", ["homecontroller", "buslistcontroller", "ngroute"]).config(function ($routeprovider) $routeprovider.when("/", controller: "homecontroller", controlleras: "ec", templateurl: "/Home/Index" ); $routeprovider.when("/searchresults/:type?/:searchstring?", controller: "homecontroller", controlleras: "rc", templateurl: "/Home/Results" ); $routeprovider.when("/businesslist/:type?",
6 controller: "homecontroller", controlleras: "bc", templateurl: "/Home/Results" ); $routeprovider.when("/reviews/:busid", controller: "homecontroller", controlleras: "rec", templateurl : "/Home/Reviews" ); $routeprovider.otherwise( redirectto: "/" ); ); )(); Angular methods (function () angular.module("homecontroller", []).controller("homecontroller", homecontroller).directive("repeatend", function () return restrict: "A", link: function (scope, element, attrs) if (scope.$last) scope.$eval(attrs.repeatend); ; );; homecontroller.$inject = ["$scope", "$http", "$routeparams", "$location"]; function homecontroller($scope, $http, $routeparams, $location) $scope.businessnamesearch = ""; $scope.modalobj = ; $scope.businesslist = []; $scope.clelist = []; $scope.reviewlist = []; $scope.yelpphotourls = []; $scope.initialize = function () if ($routeparams!= null) if ($routeparams.type === "business") $scope.getbusinessdataset($routeparams.searchstring)
7 else if ($routeparams.type === "food") $scope.gettopfood(); else if ($routeparams.type === "coffee") $scope.gettopcoffee(); else if ($routeparams.type === "bars") $scope.gettopbars(); $scope.getbusinessdataset = function (searchparam) $http( url: "/Home/GetBusinessDataset", method: "GET", params: bussearch: searchparam ).then(function (success) $scope.businesslist = JSON.parse(success.data); for (var i = 0; i < $scope.businesslist.length; i++) $http( url: "/Home/GetYelpData", method: "GET", params: busid: $scope.businesslist[i].business_id ).then(function (success) var data = JSON.parse(success.data); if (data.image_url!= null) $scope.businesslist[$scope.businesslist.findindex(x => x.name === data.name)].photourl = data.image_url; ), function (error), function (error) );
8 $scope.gettopfood = function () $http( url: "/Home/GetTopFoodBusiness", method: "GET" ).then(function (success) $scope.businesslist = JSON.parse(success.data); for (var i = 0; i < $scope.businesslist.length; i++) $http( url: "/Home/GetYelpData", method: "GET", params: busid: $scope.businesslist[i].business_id ).then(function (success) var data = JSON.parse(success.data); $scope.businesslist[$scope.businesslist.findindex(x => x.name === data.name)].photourl = data.image_url; ), function (error), function (error) ); $scope.gettopcoffee = function () $http( url: "/Home/GetTopCoffeeBusiness", method: "GET" ).then(function (success) $scope.businesslist = JSON.parse(success.data); for (var i = 0; i < $scope.businesslist.length; i++) $http( url: "/Home/GetYelpData", method: "GET", params: busid: $scope.businesslist[i].business_id ).then(function (success) var data = JSON.parse(success.data); $scope.businesslist[$scope.businesslist.findindex(x => x.name === data.name)].photourl = data.image_url; ), function (error)
9 ), function (error) $scope.gettopbars = function () $http( url: "/Home/GetTopBarsBusiness", method: "GET" ).then(function(success) $scope.businesslist = JSON.parse(success.data); //$scope.getyelpdata(); for (var i = 0; i < $scope.businesslist.length; i++) $http( url: "/Home/GetYelpData", method: "GET", params: busid: $scope.businesslist[i].business_id ).then(function (success) var data = JSON.parse(success.data); $scope.businesslist[$scope.businesslist.findindex(x => x.name === data.name)].photourl = data.image_url; ), function (error) ), function (error) $scope.getclevelandtop = function () $http( url: "/Home/GetTopClevelandBusiness", method: "GET" ).then(function (success) $scope.clelist = JSON.parse(success.data); for (var i = 0; i < $scope.clelist.length; i++)
10 $http( url: "/Home/GetYelpData", method: "GET", params: busid: $scope.clelist[i].business_id ).then(function (success) var data = JSON.parse(success.data); $scope.clelist[$scope.clelist.findindex(x => x.name === data.name)].photourl = data.image_url; ), function (error) ), function (error) $scope.getphotos = function () for (var i = 0; i < $scope.businesslist.length; i++) var businessid = $scope.businesslist[i].business_id; $j = jquery.noconflict(); /*Call PHP file for Yelp API calls*/ $j.ajax( url: '/Home/GetPhotos', type: 'post', data: id: businessid, success: function (data) //alert(data); $scope.businesslist[i].photourl = data.image_url; ) $scope.go = function (path) $location.path(path); ;
11 /*Load Google Map*/ //document.getelementbyid('map').onclick = function () $scope.getmap = function(long, lat) /*Must get lattitude and longitude first from data loaded*/ //var lattitude = ;//Replace //var longitude = ;//Replace var map = document.getelementsbyclassname('map')[0]; var mapframe = '<iframe width="300" height="170" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src=" + lat + ',' + long + '&hl=es;z=14&output=embed"></iframe>'; map.innerhtml = mapframe; $scope.getmodalcontent = function (business) $scope.modalobj = business; $scope.getreviewdataset = function () $http( url: "/Home/GetReviewsForBusiness", method: "GET", params: businessid: $routeparams.busid ).then(function (success) $scope.reviewlist = JSON.parse(success.data); ), function (error) $scope.getyelpdata = function (businessid) //for (var i = 0; i < $scope.businesslist.length; i++) //var businessid = $scope.businesslist[i].business_id; $http( url: "/Home/GetYelpData", method: "GET", params: busid: businessid ).then(function (success) var data = JSON.parse(success.data); //$scope.businesslist[i].photourl = data.image_url; //$scope.yelpphotourls.push( name: data.name, photo_url: data.image_url );
12 return data.image_url; ), function (error) // //$scope.onend = function () // //var end = true; // //while (end) // if ($scope.businesslist.length === $scope.yelpphotourls.length) // for (var i = 0; i < $scope.businesslist.length; i++) // $scope.businesslist[i].photourl = $scope.yelpphotourls.filter(x => x.name === $scope.businesslist[i].name); // // end = false; // // // // )(); The css $('#mymodal').modal('hide'); $('body').removeclass('modal-open'); $('.modal-backdrop').remove(); /*============================ MAIN JUMBOTRON AREA ===========================*/ html, body height: 100%;.jumbotron padding: 20%; background-repeat: no-repeat; background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(" background-size: cover;.wrapper margin-top: -25%;
13 .welp-title display: inline-flex; text-align: center; margin-left: 3%;.welp-title h1 padding-bottom: 5%; font-family: Impact; font-size: 70px; color: aliceblue;.search-section padding-top: 5%; padding-bottom: 2%; padding-right: 4%;.options li list-style-type: none; display: inline-block; font-size: 25px; padding-left: 5%; padding-right: 5%; img:focus outline: none;.btn padding: 0; background-color: #d32323; border: none;.btn:hover background-color: #be2020;.form-group.btn:active
14 background: darkred;.form-group input border: none;.search-form width: 35%; margin: auto;.search-form.form-control width: 100%; float: left;.search-icon max-height: 34px; padding: 15%;.search-button margin-right: 15%; margin-left: 1%; white-space: nowrap;.options li a cursor: pointer;.options ul padding: 0; #food, #coffee, #business color: white;.fa-yelp font-size: 70px; color: red; margin-top: 20px;
15 /*========================== CLEVELAND AREA SECTION ==========================*/.cleveland h3 font-family: sans-serif; color: #d32323; font-weight: bold;.places padding-bottom: 12%;.display-box display: inline-block; margin: 1%; border: 1px solid lightgray; border-radius: 5px; min-width: 330px; min-height: 303px; max-width: 330px; max-height: 303px;.box-image /*border: 1px solid black;*/ border-radius: 5px; min-height: 160px; margin: auto;.box-image img border-radius: 5px;.name,.rating,.location /*border: 1px solid lightblue;*/ border-radius: 5px; padding-top: 5%; padding-left: 1%; text-align: left;
16 /*=============================== RESULTS PAGE ===============================*/ html, body height: 100%;.my-container text-align: center; min-width: 500px; min-height: 80px; margin: auto;.my-container.container background-color: whitesmoke; border: 1px solid lightgray; border-radius: 5px; padding-top: 2%; padding-left: 10%; padding-right: 10%; padding-bottom: 1%;.content /*border: 1px solid gray;*/ height: 80%; max-width: 80%; text-align: center; margin: auto; cursor: pointer; padding-top: 1%;.top-content display: inline-block; width: 100%; height: 50%;.photo /*border: 1px solid black;*/ width: 30px;
17 height: 30px; float: left; text-align: left;.info /*border: 1px solid black;*/ width: 70%; height: 100%; float: left;.address /*border: 1px solid black;*/ width: 15%; height: 100%; float: right;.bottom-content /*border: 1px solid blue;*/ height: 49%;.review text-align: left;.my-content /*border: 1px solid gray;*/ height: 80%; max-width: 80%; text-align: center; margin: auto; margin-top: 1%;.back padding-top: 2%; text-align: center;
18 /*=============================== MODAL STUFF ================================*/.modal-content max-width: 564px; max-height: 600px; overflow: scroll;.modal-content.modal-body text-align: center;.modal-info,.hours,.business-info padding-top: 5%; The server side code: using System.Configuration; using System.Linq; using System.Web.Mvc; using MongoDB.Driver; using MongoDB.Bson; using Newtonsoft.Json.Linq; using System.Collections.Generic; using System; using System.Net; using SimpleOAuth; using System.IO; using System.Text; namespace Welp.Controllers public class HomeController : Controller private readonly string mongodburi = ConfigurationManager.AppSettings["mongoDbUri"]; private readonly string businessdatafile = ConfigurationManager.AppSettings["businessJsonPath"]; private readonly string checkindatafile = ConfigurationManager.AppSettings["checkinJsonPath"]; private const string API_HOST = " private const string BUSINESS_PATH = "/v2/business/"; private const string CONSUMER_KEY = null;
19 private const string CONSUMER_SECRET = null; private const string TOKEN = null; private const string TOKEN_SECRET = null; public ActionResult Index() return View("~/Views/Home/WelpHome.cshtml"); public ActionResult Results() return View("~/Views/Home/Results.cshtml"); public ActionResult Reviews() return View("~/Views/Home/Review.cshtml"); //public ActionResult About() // // ViewBag.Message = "Your application description page."; // return View(); // //public ActionResult Contact() // // ViewBag.Message = "Your contact page."; // return View(); // //business dataset public ActionResult GetBusinessDataset(string bussearch) var client = new MongoClient();//parameterless connects to default var db = client.getdatabase("yelp"); var business = db.getcollection<bsondocument>("business"); var filter = new BsonDocument("name", bussearch);
20 var bussearchresult = business.find(filter).limit(50).tolist(); return Json(busSearchResult.ToJson(new MongoDB.Bson.IO.JsonWriterSettings OutputMode = MongoDB.Bson.IO.JsonOutputMode.Strict ), JsonRequestBehavior.AllowGet); public ActionResult GetTopFoodBusiness() var client = new MongoClient(); var db = client.getdatabase("yelp"); var business = db.getcollection<bsondocument>("business"); var filter = new BsonDocument("categories", new BsonDocument("$eq", "Food")); var busfoodresult = business.find(filter).sort("stars: -1").Limit(50).ToList(); return Json(busFoodResult.ToJson(new MongoDB.Bson.IO.JsonWriterSettings OutputMode = MongoDB.Bson.IO.JsonOutputMode.Strict ), JsonRequestBehavior.AllowGet); public ActionResult GetTopCoffeeBusiness() var client = new MongoClient(); var db = client.getdatabase("yelp"); var business = db.getcollection<bsondocument>("business"); var filter = new BsonDocument("categories", new BsonDocument("$eq", "Coffee & Tea")); var buscoffeeresult = business.find(filter).sort("stars: -1").Limit(50).ToList(); return Json(busCoffeeResult.ToJson(new MongoDB.Bson.IO.JsonWriterSettings OutputMode = MongoDB.Bson.IO.JsonOutputMode.Strict ), JsonRequestBehavior.AllowGet); public ActionResult GetTopBarsBusiness() var client = new MongoClient(); var db = client.getdatabase("yelp"); var business = db.getcollection<bsondocument>("business");
21 var filter = new BsonDocument("categories", new BsonDocument("$eq", "Bars")); var busbarsresult = business.find(filter).sort("stars: -1").Limit(50).ToList(); return Json(busBarsResult.ToJson(new MongoDB.Bson.IO.JsonWriterSettings OutputMode = MongoDB.Bson.IO.JsonOutputMode.Strict ), JsonRequestBehavior.AllowGet); public ActionResult GetTopClevelandBusiness() var client = new MongoClient(); var db = client.getdatabase("yelp"); var business = db.getcollection<bsondocument>("business"); var filter = new BsonDocument("city", "Cleveland"); var buscleresult = business.find(filter).sort("stars: -1").Limit(3).ToList(); return Json(busCleResult.ToJson(new MongoDB.Bson.IO.JsonWriterSettings OutputMode = MongoDB.Bson.IO.JsonOutputMode.Strict ), JsonRequestBehavior.AllowGet); //review dataset public ActionResult GetReviewsForBusiness(string businessid) var client = new MongoClient(); var db = client.getdatabase("yelp"); var review = db.getcollection<bsondocument>("review"); var filter = new BsonDocument("business_id", businessid); var reviewresult = review.find(filter).tolist(); return Json(reviewResult.ToJson(new MongoDB.Bson.IO.JsonWriterSettings OutputMode = MongoDB.Bson.IO.JsonOutputMode.Strict ), JsonRequestBehavior.AllowGet); public void GetPhotos(string busid) //server.execute("myfile.php?parameters") Server.Transfer("~/Scripts/Site/yelp_api.php?"+busId); //authtoken,
22 //appends the bus id and appends the public ActionResult GetYelpData(string busid) var url = " var token = "Bearer bbcyj7wv9oh551zjkpm0jxobh7xauhomylcltbsn2czvihwa8hgm2akpugyp0l0o5lqsoqo5l wmnh_e80m6tpip9anr_atrm2oazzq7rfts8reulsqmdwsc0cumdwxyx"; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.method = "GET"; request.headers["authorization"] = token; var res = request.getresponse(); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); string result = ""; using (var reader = new StreamReader(response.GetResponseStream())) result = reader.readtoend(); //var responsestring = ReadHttpResponseString(response) return Json(result, JsonRequestBehavior.AllowGet); //public JObject GetBusiness(string business_id) // // string baseurl = API_HOST + BUSINESS_PATH + business_id; // return PerformRequest(baseURL); // //private JObject PerformRequest(string baseurl, Dictionary<string, string> queryparams = null) // // var query = System.Web.HttpUtility.ParseQueryString(String.Empty); // if (queryparams == null) // // queryparams = new Dictionary<string, string>(); //
23 // foreach (var queryparam in queryparams) // // query[queryparam.key] = queryparam.value; // // var uribuilder = new UriBuilder(baseURL); // uribuilder.query = query.tostring(); // var request = WebRequest.Create(uriBuilder.ToString()); // request.method = "GET"; // request.headers = ""; // request.signrequest( // new Tokens("") // ).WithEncryption(EncryptionMethod.HMACSHA1).InHeader(); // HttpWebResponse response = (HttpWebResponse)request.GetResponse(); // var stream = new StreamReader(response.GetResponseStream(), Encoding.UTF8); // return JObject.Parse(stream.ReadToEnd()); // //other datasets //public void GetCheckinDataset() // // //public void GetTipDataset() // // //public void GetUserDataset() // //
24
25
Building Page Layouts
Building Page Layouts HTML & CSS From Scratch Slides 3.1 Topics Display Box Model Box Aesthetics Float Positioning Element Display working example at: h9ps://;nker.io/3a2bf Source: unknown. Please contact
More informationPliki.tpl. scripts/search.tpl. Pliki.css. Pliki.less. Dokumentacja zmian plików graficznych: rwd shoper Wersja zmian:
Dokumentacja zmian plików graficznych: rwd shoper Wersja zmian: 5.8.32-5.8.33 Pliki.tpl scripts/search.tpl - 1
More informationHTML HTML5. DOM(Document Object Model) CSS CSS
HTML HTML5 DOM(Document Object Model) CSS CSS HTML html img jpg png gif jpg png gif
More informationLAMPIRAN. Index.php. <?php. unset($_session["status"]); //session_destroy(); //session_destroy();
LAMPIRAN Index.php unset($_session["status"]); //session_destroy(); //session_destroy();?>
More informationBuilding beautiful websites with Bootstrap: A case study. by Michael Kennedy michaelckennedy.net
Building beautiful websites with Bootstrap: A case study by Michael Kennedy DevelopMentor @mkennedy michaelckennedy.net Objectives Learn what Bootstrap has to offer web developers Install and use Bootstrap
More information/* ========================================================================== PROJECT STYLES
html { box-sizing: border-box; *, *:before, *:after { box-sizing: inherit; img { max-width: 100%; border: 0; audio, canvas, iframe, img, svg, video { vertical-align: middle; /* Remove gaps between elements
More informationCSS (Cascading Style Sheets)
CSS (Cascading Style Sheets) CSS (Cascading Style Sheets) is a language used to describe the appearance and formatting of your HTML. It allows designers and users to create style sheets that define how
More informationCSS: Cascading Style Sheets
CSS: Cascading Style Sheets Computer Science and Engineering College of Engineering The Ohio State University Lecture 13 Evolution of CSS MIME type: text/css CSS 1 ('96): early recognition of value CSS
More informationWanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster.
Wanted! Introduction In this project, you ll learn how to make your own poster. Step 1: Styling your poster Let s start by editing the CSS code for the poster. Activity Checklist Open this trinket: jumpto.cc/web-wanted.
More informationZen Garden. CSS Zen Garden
CSS Patrick Behr CSS HTML = content CSS = display It s important to keep them separated Less code in your HTML Easy maintenance Allows for different mediums Desktop Mobile Print Braille Zen Garden CSS
More information<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***
Chapter 7 Using Advanced Cascading Style Sheets HTML is limited in its ability to define the appearance, or style, across one or mare Web pages. We use Cascading style sheets to accomplish this. Remember
More informationDeccansoft Software Services
Deccansoft Software Services (A Microsoft Learning Partner) HTML and CSS COURSE SYLLABUS Module 1: Web Programming Introduction In this module you will learn basic introduction to web development. Module
More informationCSS: Layout Part 2. clear. CSS for layout and formatting: clear
CSS: Layout Part 2 Robert A. Fulkerson College of Information Science and Technology http://www.ist.unomaha.edu/ University of Nebraska at Omaha http://www.unomaha.edu/ CSS for layout and formatting: clear
More informationViostream Upload Widget
Viostream Upload Widget Version: 1.0 Date: 15 September, 2015 Viocorp 2015 Author Brendon Kellett Viocorp International Pty Ltd ABN: 43 100 186 838 110 Jones Bay Wharf, 26-32 Pirrama Road, Pyrmont NSW
More informationWhat is the Box Model?
CSS Box Model What is the Box Model? The box model is a tool we use to understand how our content will be displayed on a web page. Each HTML element appearing on our page takes up a "box" or "container"
More informationLab 1: Introducing HTML5 and CSS3
CS220 Human- Computer Interaction Spring 2015 Lab 1: Introducing HTML5 and CSS3 In this lab we will cover some basic HTML5 and CSS, as well as ways to make your web app look and feel like a native app.
More informationMake a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1
Make a Website A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Overview Course outcome: You'll build four simple websites using web
More informationBlock & Inline Elements
Block & Inline Elements Every tag in HTML can classified as a block or inline element. > Block elements always start on a new line (Paragraph, List items, Blockquotes, Tables) > Inline elements do not
More informationMultimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3
Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3 Instructions to use the laboratory computers (room B2): 1. If the computer is off, start it with Windows (all computers have a Linux-Windows
More informationAPEX Developers - Do More With Less!!
APEX Developers - Do More With Less!! Roel Hartman Copyright 2014 APEX Consulting 2 LESS Leaner CSS SASS Syntactically Awesome StyleSheets SCSS Sassy CSS OOCSS Object Oriented CSS Issue 1 You need a CSS
More informationResponsive web design (RWD) CSS3 Media queries. Mobile vs desktop web sites. Web Development 1 CS1115/CS5002
1 of 13 CS1115/CS5002 Web Development 1 Dr Derek Bridge School of Computer Science & Information Technology University College Cork Mobile vs desktop web sites A few organization have two web sites, one
More informationSigns of Spring App. Release Notes Version 1.0
Signs of Spring App Release Notes Version 1.0 App Parameters and Styling In your Caspio account, go to the App s Overview screen. On the right sidebar, click on Manage in the App Parameters area. Edit
More informationPliki.tpl. boxes/languagelist/box.tpl. boxes/newsletter/box.tpl. scripts/basket/address.tpl
Dokumentacja zmian plików graficznych: rwd shoper Wersja zmian: 5.8.33-5.19.1 Pliki.tpl boxes/languagelist/box.tpl 28 {foreach from=$boxns->$box_id->list item=language} 29 name == $boxns->$box_id->language}
More informationIntroduction to using HTML to design webpages
Introduction to using HTML to design webpages #HTML is the script that web pages are written in. It describes the content and structure of a web page so that a browser is able to interpret and render the
More informationCSS Cascading Style Sheets
CSS Cascading Style Sheets site root index.html about.html services.html stylesheet.css images boris.jpg Types of CSS External Internal Inline External CSS An external style sheet is a text document with
More informationHTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.
HTML Summary Structure All of the following are containers. Structure Contains the entire web page. Contains information
More informationCSS. Shan-Hung Wu CS, NTHU
CSS Shan-Hung Wu CS, NTHU CSS Zen Garden 2 Outline The Basics Selectors Layout Stacking Order 3 Outline The Basics Selectors Layout Stacking Order 4 Grammar selector { property: value; 5 Example /* for
More informationStamp Builder. Documentation. v1.0.0
Stamp Email Builder Documentation http://getemailbuilder.com v1.0.0 THANK YOU FOR PURCHASING OUR EMAIL EDITOR! This documentation covers all main features of the STAMP Self-hosted email editor. If you
More informationLayout with Layers and CSS
Layout with Layers and CSS Today we're going to make a Web site layout. Preparatory Step 1. Inside your folder create a new folder and name it layout. 2. Inside the layout folder create a new folder and
More informationDescription: This feature will enable user to send messages from website to phone number.
Web to Phone text message Description: This feature will enable user to send messages from website to phone number. User will use this feature and can send messages from website to phone number, this will
More informationTaking Fireworks Template and Applying it to Dreamweaver
Taking Fireworks Template and Applying it to Dreamweaver Part 1: Define a New Site in Dreamweaver The first step to creating a site in Dreamweaver CS4 is to Define a New Site. The object is to recreate
More informationCSS3 Basics. From & CSS Visual Dictionary Learning Curve Books, LLC
CSS3 Basics From www.w3schools.com & CSS Visual Dictionary Learning Curve Books, LLC CSS Box Model Margin (top, right, bottom, left) Shorthand property, equivalent to Border-width border-style border-color
More informationGIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar
GIMP WEB 2.0 MENUS Web 2.0 Menus: Horizontal Navigation Bar WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR Hover effect: You may create your button in GIMP. Mine is 122 pixels by 48 pixels. You can use whatever
More informationWEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:
WEBSITE PROJECT 2 PURPOSE: The purpose of this project is to begin incorporating color, graphics, and other visual elements in your webpages by implementing the HTML5 and CSS3 code discussed in chapters
More informationITNP43: HTML Lecture 5
ITNP43: HTML Lecture 5 1 The Box Model Every HTML element (e.g. h2, p etc) lies within a virtual box: Margin area LEFT TOP This is just some text that flows onto two lines. Border RIGHT Padding area BOTTOM
More informationFront-End UI: Bootstrap
Responsive Web Design BootStrap Front-End UI: Bootstrap Responsive Design and Grid System Imran Ihsan Assistant Professor, Department of Computer Science Air University, Islamabad, Pakistan www.imranihsan.com
More informationLab Introduction to Cascading Style Sheets
Lab Introduction to Cascading Style Sheets For this laboratory you will need a basic text editor and a browser. In the labs, winedt or Notepad++ is recommended along with Firefox/Chrome For this activity,
More informationCOSC 2206 Internet Tools. CSS Cascading Style Sheets
COSC 2206 Internet Tools CSS Cascading Style Sheets 1 W3C CSS Reference The official reference is here www.w3.org/style/css/ 2 W3C CSS Validator You can upload a CSS file and the validator will check it
More informationCOPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1
59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xi Introduction xxiii Chapter 1: Creating Structured Documents 1 A Web of Structured Documents 1 Introducing XHTML 2 Core Elements and Attributes 9 The
More informationIntroduction to WEB PROGRAMMING
Introduction to WEB PROGRAMMING Web Languages: Overview HTML CSS JavaScript content structure look & feel transitions/animation s (CSS3) interaction animation server communication Full-Stack Web Frameworks
More informationCSS. https://developer.mozilla.org/en-us/docs/web/css
CSS https://developer.mozilla.org/en-us/docs/web/css http://www.w3schools.com/css/default.asp Cascading Style Sheets Specifying visual style and layout for an HTML document HTML elements inherit CSS properties
More informationHTML & CSS. Rupayan Neogy
HTML & CSS Rupayan Neogy But first My Take on Web Development There is always some tool that makes your life easier. Hypertext Markup Language The language your web browser uses to describe the content
More informationSanta Tracker. Release Notes Version 1.0
Santa Tracker Release Notes Version 1.0 App Parameters and Styling In your Caspio account, go to the App s Overview screen and on the right sidebar click on Manage in the App Parameters area. Edit any
More informationUNIVERSITY OF TORONTO Faculty of Arts and Science APRIL 2016 EXAMINATIONS. CSC309H1 S Programming on the Web Instructor: Ahmed Shah Mashiyat
UNIVERSITY OF TORONTO Faculty of Arts and Science APRIL 2016 EXAMINATIONS CSC309H1 S Programming on the Web Instructor: Ahmed Shah Mashiyat Duration - 2 hours Aid Sheet: Both side of one 8.5 x 11" sheet
More informationLAMPIRAN-LAMPIRAN A. Source Code 1) Sample Controller pada HomeController.php
67 LAMPIRAN-LAMPIRAN A. Source Code 1) Sample Controller pada HomeController.php
More informationWelcome Please sit on alternating rows. powered by lucid & no.dots.nl/student
Welcome Please sit on alternating rows powered by lucid & no.dots.nl/student HTML && CSS Workshop Day Day two, November January 276 powered by lucid & no.dots.nl/student About the Workshop Day two: CSS
More informationCSE 154: Web Programming Autumn 2018
CSE 154: Web Programming Autumn 2018 Midterm Key Question Score Possible HTML 5 Short Answer 9 CSS/DOM Tree 12 JS/Animations 12 JS/DOM/UI 12 Total 50 1. (HTML) (1 pt each) What s wrong with my HMTL? Consider
More informationPliki.tpl. scripts/flash_messages.tpl. scripts/panel/index.tpl. Dokumentacja zmian plików graficznych: rwd clickshop Wersja zmian:
Dokumentacja zmian plików graficznych: rwd clickshop Wersja zmian: 1.8.13-1.8.14 Pliki.tpl scripts/flash_messages.tpl 2 {if $flash_messages.error @count > 0 $flash_messages.warning @count > 0 $flash_messages.info
More informationCSS Module in 2 Parts
CSS Module in 2 Parts So as to familiarize yourself with the basics of CSS before moving onto Dreamweaver, I d like you to do the 2 following Modules. It is important for you to AT LEAST do Part 1. Part
More informationGIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST
GIMP WEB 2.0 MENUS Web 2.0 Menus: Horizontal Navigation Bar WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR Hover effect: CREATING AN HTML LIST Most horizontal or vertical navigation bars begin with a simple
More information/*OVERIDE THE ZURB FRAMEWORK CSS FONTS WITH GOOGLE FONTS*/
body { margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;.artist-center { padding-top: 10px; /*OVERIDE THE ZURB FRAMEWORK CSS FONTS WITH GOOGLE FONTS*/ p { font-family: 'Roboto',
More informationWhile editing a page, a menu bar will appear at the top with the following options:
Page Editor ===> Page Editor How Can I Use the Page Editor? The Page Editor will be your primary way of editing your website. Page Editor Basics While editing a page, you will see that hovering your mouse
More informationMYGOV.SCOT ASSETS. Design Guide for Developers
MYGOV.SCOT ASSETS Design Guide for Developers Contents Click on the options below for further information: Typography The mygov.scot font is Roboto, this is an open source, licence free font which can
More informationCreating a Job Aid using HTML and CSS
Creating a Job Aid using HTML and CSS In this tutorial we will apply what we have learned about HTML and CSS. We will create a web page containing a job aid about how to buy from a vending machine. Optionally,
More information"utf-8";
http://salsa-copacabana.com/css/import.css @charset "Shift_JIS"; /* ------------------------------------------ File name: import.css Style Info: CSS screen Windwos IE4 ------------------------------------------
More informationCSS often uses hyphens in CSS property names but JavaScript uses camel case, e.g. color: blue; p { <!DOCTYPE html> <meta charset="utf-8" /> <head>
1 of 9 CS1116/CS5018 Web Development 2 Dr Derek Bridge School of Computer Science & Information Technology University College Cork Recap To find nodes: queryselector, queryselectorall To create new element
More informationAPEX Developers Do More With Less!! How do YOU manage your APEX CSS? Storage Options 1. Web server 2. APEX repository 3. In line 4.
APEX Developers Do More With Less!! Roel Hartman Copyright 2016 APEX Consulting 2 How do YOU manage your APEX CSS? Storage Options 1. Web server 2. APEX repository 3. In line 4. Attribute 3 How do YOU
More informationGetting your work online. behance.net cargo collective krop coroflot
Getting your work online behance.net cargo collective krop coroflot behance online presence behance.net has a free and pro version. The free version is fine for getting internships. Free Version Pros networked
More informationWhere s My Cat? <title>where's My Cat?</title> </head> <body> <h1 class="where">where's MY CAT?</h1>
Where s My Cat? HTML
More informationUnit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors
Unit 10 - Client Side Customisation of Web Pages Week 5 Lesson 1 CSS - Selectors Last Time CSS box model Concept of identity - id Objectives Selectors the short story (or maybe not) Web page make-over!
More informationINFS 2150 Introduction to Web Development
INFS 2150 Introduction to Web Development 3. Page Layout Design Objectives Create a reset style sheet Explore page layout designs Center a block element Create a floating element Clear a floating layout
More informationINFS 2150 Introduction to Web Development
Objectives INFS 2150 Introduction to Web Development 3. Page Layout Design Create a reset style sheet Explore page layout designs Center a block element Create a floating element Clear a floating layout
More informationCreate a three column layout using CSS, divs and floating
GRC 275 A6 Create a three column layout using CSS, divs and floating Tasks: 1. Create a 3 column style layout 2. Must be encoded using HTML5 and use the HTML5 semantic tags 3. Must se an internal CSS 4.
More informationIn the early days of the Web, designers just had the original 91 HTML tags to work with.
Web Design Lesson 4 Cascading Style Sheets In the early days of the Web, designers just had the original 91 HTML tags to work with. Using HTML, they could make headings, paragraphs, and basic text formatting,
More informationCSC309 Programming on the Web week 3: css, rwd
CSC309 Programming on the Web week 3: css, rwd Amir H. Chinaei, Spring 2017 Office Hours: M 3:45-5:45 BA4222 ahchinaei@cs.toronto.edu http://www.cs.toronto.edu/~ahchinaei/ survey 1 in survey 1, you provide
More informationCreating HTML files using Notepad
Reference Materials 3.1 Creating HTML files using Notepad Inside notepad, select the file menu, and then Save As. This will allow you to set the file name, as well as the type of file. Next, select the
More informationResponsive Web Design (RWD)
Responsive Web Design (RWD) Responsive Web Design: design Web pages, so that it is easy to see on a wide range of of devices phone, tablet, desktop,... Fixed vs Fluid layout Fixed: elements have fixed
More informationStyles, Style Sheets, the Box Model and Liquid Layout
Styles, Style Sheets, the Box Model and Liquid Layout This session will guide you through examples of how styles and Cascading Style Sheets (CSS) may be used in your Web pages to simplify maintenance of
More informationif(! list.contains(list.collect(params,'key'),'title')){ <div style="font-weight:bold;color:red;">"warning: A title field must be assigned.
/** Author: Blake Harms Version 2.9 See: http://developer.mindtouch.com/app_catalog/ Integrated_Bug_and_Issue_Tracker on 2.9 added performance tunning posted by Sego on this blog post: http://forums.developer.mindtouch.com/
More informationCSCU9B2: Web Tech Lecture 3
CSCU9B2: Web Tech Lecture 3 1 The Box Model Every HTML element (e.g. h2, p etc) lies within a virtual box: Margin area LEFT TOP This is just some text that flows onto two lines. Border RIGHT Padding area
More informationCE419 Web Programming. Session 3: HTML (contd.), CSS
CE419 Web Programming Session 3: HTML (contd.), CSS 1 Forms 2 Forms Provides a way to interact with users. Not useful without a server-side counterpart. 3 From Elements
More informationCOMS 359: Interactive Media
COMS 359: Interactive Media Agenda Review CSS Layout Preview Review Introducting CSS What is CSS? CSS Syntax Location of CSS The Cascade Box Model Box Structure Box Properties Review Style is cascading
More informationWeb Engineering CSS. By Assistant Prof Malik M Ali
Web Engineering CSS By Assistant Prof Malik M Ali Overview of CSS CSS : Cascading Style Sheet a style is a formatting rule. That rule can be applied to an individual tag element, to all instances of a
More informationCSS Box Model. Cascading Style Sheets
CSS Box Model Cascading Style Sheets CSS box model Background Width & height Margins & padding Borders Centering content Changing display type (block vs. inline) The Box Model Background Properties Property
More informationProgrammazione Web a.a. 2017/2018 HTML5
Programmazione Web a.a. 2017/2018 HTML5 PhD Ing.Antonino Raucea antonino.raucea@dieei.unict.it 1 Introduzione HTML HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text
More information=================== coffee-submit.php ==========================
Solutions 1. CSS body { background-color: #DDD; #info img { float: right; height: 200px; margin: 10px; #info { padding-left: 2%; float: left; width:78%; #stats { width: 20%; float: left; background-color:
More informationCreating and Building Websites
Creating and Building Websites Stanford University Continuing Studies CS 21 Mark Branom branom@alumni.stanford.edu Course Web Site: http://web.stanford.edu/group/csp/cs21 Week 6 Slide 1 of 28 Week 6 Agenda
More informationStudy Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo
Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo Note: We skipped Study Guide 1. If you d like to review it, I place a copy here: https:// people.rit.edu/~nbbigm/studyguides/sg-1.docx
More informationCSS: Layout, Floats, and More
CSS: Layout, Floats, and More CISC 282 September 27, 2017 Pseudo Selectors CSS selectors are typically document-related Reflect an element's context in the page Nesting, containing block, tag, class(es)...
More informationCreate First Web Page With Bootstrap
Bootstrap : Responsive Design Create First Web Page With Bootstrap 1. Add the HTML5 doctype Bootstrap uses HTML elements and CSS properties that require the HTML5 doctype. 2. Bootstrap 3 is mobile-first
More informationCSS Selectors. element selectors. .class selectors. #id selectors
CSS Selectors Patterns used to select elements to style. CSS selectors refer either to a class, an id, an HTML element, or some combination thereof, followed by a list of styling declarations. Selectors
More informationChapter 3 Style Sheets: CSS
WEB TECHNOLOGIES A COMPUTER SCIENCE PERSPECTIVE JEFFREY C. JACKSON Chapter 3 Style Sheets: CSS 1 Motivation HTML markup can be used to represent Semantics: h1 means that an element is a top-level heading
More informationPaythru Remote Fields
Paythru Remote Fields Paythru Remote Fields are an alternative integration method for the Paythru Client POST API. The integration consists of contructing a basic javascript configuration object and including
More informationHTML and CSS a further introduction
HTML and CSS a further introduction By now you should be familiar with HTML and CSS and what they are, HTML dictates the structure of a page, CSS dictates how it looks. This tutorial will teach you a few
More informationThe default style for an unordered (bulleted) list is the bullet, or dot. You can change the style to either a square or a circle as follows:
CSS Tutorial Part 2: Lists: The default style for an unordered (bulleted) list is the bullet, or dot. You can change the style to either a square or a circle as follows: ul { list-style-type: circle; or
More informationSpring Data JPA, Spring Boot, Oracle, AngulerJS 적용게시판실습 게시판리스트보기.
Spring Data JPA, Spring Boot, Oracle, AngulerJS 적용게시판실습 http://ojc.asia, http://ojcedu.com 게시판리스트보기 Spring JDBC 또는 MyBatis로만들때보다쉽고빠르게작성할수있다. 스프링컨트롤러는 RestController를적용했으며, 뷰페이지에 Bootstrap 및 AngulerJS 적용했다.
More informationIBM Bluemix Node-RED Watson Starter
IBM Bluemix Node-RED Watson Starter Cognitive Solutions Application Development IBM Global Business Partners Duration: 45 minutes Updated: Feb 14, 2018 Klaus-Peter Schlotter kps@de.ibm.com Version 1 Overview
More informationIntroduction to HTML & CSS. Instructor: Beck Johnson Week 2
Introduction to HTML & CSS Instructor: Beck Johnson Week 2 today Week One review and questions File organization CSS Box Model: margin and padding Background images and gradients with CSS Make a hero banner!
More informationClass 9 / Instructor: Ira Epstein
Fashion Institute of Technology http://www.iraworks.com/fit Introduction to Web Design / CT244 Instructor: Ira Epstein iraepst@gmail.com Class 9 / 4-3-18 1) Attendance and Announcements... 2:10-2:20 a)
More informationIntroduction to Web Design CSS Reference
Inline Style Syntax: Introduction to Web Design CSS Reference Example: text Internal Style Sheet Syntax: selector {property: value; Example:
More informationIntroduction to Web Design CSS Reference
Inline Style Syntax: Introduction to Web Design CSS Reference Example: text Internal Style Sheet Syntax: selector {property: value; Example:
More informationPliki.tpl. scripts/flash_messages.tpl. scripts/panel/index.tpl. Dokumentacja zmian plików graficznych: rwd shoper Wersja zmian:
Dokumentacja zmian plików graficznych: rwd shoper Wersja zmian: 5.8.13-5.8.14 Pliki.tpl scripts/flash_messages.tpl 2 {if $flash_messages.error @count > 0 $flash_messages.warning @count > 0 $flash_messages.info
More informationMedia Types & Media Features
Media Types & Media Features Same HTML, Different CSS R. Scott Granneman r Jans Carton 1.6 2008 R. Scott Granneman Last updated 2018-08-21 You are free to use this work, with certain restrictions. For
More informationHTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS
MOST TAGS CLASS Divides tags into groups for applying styles 202 ID Identifies a specific tag 201 STYLE Applies a style locally 200 TITLE Adds tool tips to elements 181 Identifies the HTML version
More informationWeb Design and Development Tutorial 03
Table of Contents Web Design & Development - Tutorial 03... 2 Using and Applying CSS to XHTML... 2 Conventions... 2 What you need for this tutorial... 2 Common Terminology... 3 Parent / Child Elements...
More informationIntroduction to HTML & CSS. Instructor: Beck Johnson Week 5
Introduction to HTML & CSS Instructor: Beck Johnson Week 5 SESSION OVERVIEW Review float, flex, media queries CSS positioning Fun CSS tricks Introduction to JavaScript Evaluations REVIEW! CSS Floats The
More informationGetting Started with Eric Meyer's CSS Sculptor 1.0
Getting Started with Eric Meyer's CSS Sculptor 1.0 Eric Meyer s CSS Sculptor is a flexible, powerful tool for generating highly customized Web standards based CSS layouts. With CSS Sculptor, you can quickly
More informationExam II CIS 228: The Internet Prof. St. John Lehman College City University of New York 5 November 2009
Exam II CIS 228: The Internet Prof. St. John Lehman College City University of New York 5 November 2009 NAME (Printed) NAME (Signed) E-mail Exam Rules Show all your work. Your grade will be based on the
More information