Showing posts with label Web Design. Show all posts
Showing posts with label Web Design. Show all posts

Monday, August 3, 2020

What is JavaScript? What Does It Do, and What Is It Used For?






 "What is JavaScript? What does it do and what is it used for?" 

Well, first, right off the bat, JavaScript is a programming language. But one of the things that makes it unique is that it runs right in your browser. 

Most programming languages for the web run on the server, and then what you get in your browser is a plain webpage. JavaScript's run by your browser and that makes it quite unique in the world of programming languages.

 We're here at JavaScript.comand one of their first examples is to simply type your name in quotes and hit enter. And there, when I did that it turned green, it put a checkmark on the left, and it made a button that said, "next challenge".

 My browser didn't go out to the server to get all that information, it just did it right here. So then, what can JavaScript do for us? There are lots and lots of great things. It's good at providing interactivity. Right here in this blog post, there's this little gallery of pictures. On some of them, if you hover, it pops up a description.

 And if you click, it fades the page out to black and brings up a large one with a space for comments below and arrows on the left and right and a little x here at the top. All kinds of interactivity. Another example of interactivity comes right here in this form field. It wants a date. When I click, it brings up a calendar and I can simply click. 

That helps remove the possibility of typing in a date incorrectly. And it helps you be sure about the date you're choosing. Another thing that JavaScript can enable is real-time content updates. We're looking here at a Google map and there are little pinpoints all over it. If I click one, it brings up some information. Now JavaScript went out to the server and got this little piece of information. It didn't reload the whole page. If I click on a different pinpoint, it goes to get different information. And then down in the bottom right are some tools for zooming. Each time I zoom it’s going out to the server, getting a new image. But it's doing it without reloading the entire browser.

 So, I don't lose whatever work I'm doing elsewhere on this page. JavaScript can also enable animation. This is a code example page. We have HTML, CSS, and JavaScript. But together they make this solar system. And it's more than just animation.

 You can choose different planets to watch. You could turn it into 2D. You could zoom it out so that you could see allot the planets at once. And you can have different focuses. Right now, we're looking at speed, but if you made size proper, this is what the sun is like in scale to Earth, not like this, and there's also distance. All of this is done with just a little bit of JavaScript. 

One last thing I want to show you is dealing with data. You can take data in the proper format and feed it into JavaScript and create charts and graphs. These charts and graphs cane automatically updated based on the data that gets fed into them. So, let's review. JavaScript is a programming language. And the thing that makes it unique is that it runs in your browser, as opposed to on the server. 

It can provide interactivity, real-time content updates, and quite a few animation options. JavaScript is an exceptionally powerful language. One last thing I'd like to point out is that JavaScript is not related to Java in any way. The name is an unfortunate coincidence. They're completely different languages written for different purposes by different people at different times and they run on different machines. The thing to remember is that JavaScript is the one that runs in your browser. 

Monday, July 27, 2020

How to configure the Yoast SEO Search Appearance settings: General tab | Yoast SEO for WordPress

 







Hi, we're on the Search Appearance settings for Yoast SEO. In this screencast, we'll focus on the first tab, called "General". You'll find three different sections here, indicated by three different headings, called "Title separator", "Homepage" and "Knowledge Graph & Schema.org". 

First of all, you can choose the title separator. The title separator determines what we use to separate different parts of your SEO title from each other in the search results. At Yoast, we tend to use this bullet between, for instance, the site name and the title of a page. Let me show you what that looks like in the search results. Let's google "keyword research Yoast". OK, if you look at the first result, you'll see the bullet appear between the name of the post (Keyword research for SEO: the ultimate guide) and the site name(which is Yoast). Of course, you can also use dashes or pipes, or something else. What you choose depends mostly on taste, but if you choose a longer one, like this em dash, the amount of space that you have for your title shrinks by the space that the title separator takes up in your title. 

So we usually recommend picking a shorter one, like dots, or a pipe. The problem that we have with a pipe is that it looks too much like the letter L. Let's move on to the second section, called "Homepage". What can we do here? Let's click the question mark to find out more. "This is what shows in the search results when people find your homepage Site. This means this is probably what they see when they search for your brand name." Okay, so, what you can do here is change the SEO title and meta description of your homepage. As we've seen before, you can use snippet variables to determine the SEO title. In our case, the SEO title of the homepage would say: "Yoast" (our site title), then a page number if there is any(our page), a bullet (or separator) and "SEO for everyone" (our tagline). You can easily adjust the SEO title clicking "Insert snippet variable". And you can always check which variables are available by clicking "Need help" and then "Snippet variables". In the next field, you can enter the meta description for your homepage. 
You can insert snippet variables here as well if you like. Now, let's have a quick look at our own homepage snippet. Let's just google "Yoast". Here it is, just below the ad. If people click this result, they will land directly on our homepage. Now, as you can see, we've customized our SEO title a bit. Instead of showing the site title "Yoast" first, we've chosen to first show the tagline "SEO for everyone". And our meta description explains one clear sentence what we do and which products we offer. The last section on this tab is called"Knowledge Graph & Schema.org". That sounds rather difficult. Is it? Well, no, not for you. 

Because we take care of the difficult stuff for you. Let's first discuss the knowledge graph. What is it? A knowledge graph panel in Google's search results appears when you search for an organization or a person. If I search for, for example, "Walt Disney Company", this panel at the right is the knowledge panel. If I search for "Walt Disney" only, this is the knowledge panel. Within the plugin, you can change the settings that will determine what shows up here, which logo shows, and which social profiles show in this panel. You first have to determine whether you're an organization or a person. If you're an organization, you can set a name and logo here.

 The social profiles, like Facebook and Twitter, are taken care of in the Tools section of Yoast SEO. And we'll come back to that later in this course. If you're a person, you have to select the one that represents the site. Make sure that the user profile information is up-to-date as this information will be used the search results. You can edit this information by clicking this link. We'll come back to that later in this course as well. And... cool, cool, cool...

you can also upload an image for persons. What happens next? Well, we will automatically generate-called JSON-LD metadata (you don't have to know exactly what this is right now) but we show this data on the front page of your site. So you won't see this anywhere on the design of your site, this will just show in the code and it might show up in the search results. Good luck and don't forget to hit "Save changes" of course! 

Payment Gateway Integration-PHP




1 Apply For Instamojo for payment
2 Copy this code and upload in your Files
3 Put The authentication Key 0r Private Key in your files
  

Code:
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
		<meta name="description" content="">
		<meta name="author" content="">
		<link rel="icon" href="../../favicon.ico">
		<title>Payment Mojo</title>
		<!-- Latest compiled and minified CSS -->
		<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" >
		<!-- Optional theme -->
		<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" >
		<!-- Latest compiled and minified JavaScript -->
		<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	</head>
	<body>
    <div class="container">
	<div class="page-header">
        <h1><a href="index.php">Instamojo Payment</a></h1>
		<form action="pay.php" method="POST" accept-charset="utf-8">
			<input type="hidden" name="product_name" value="<?php echo $prd_name; ?>"> 
			<input type="hidden" name="product_price" value="<?php echo $prd_price; ?>"> 
			<div class="form-group">
			<label>Your Name</label>
			<input type="text" class="form-control" name="name" placeholder="Enter your name">	 
			</div>
			<div class="form-group">
			<label>Your Phone</label>
			<input type="text" class="form-control" name="phone" placeholder="Enter your phone number"> 
			</div>
			<div class="form-group">
			<label>Your Email</label>
			<input type="email" class="form-control" name="email" placeholder="Enter you email"> 
			</div>
			<div class="form-group">
			<label>Amount</label>
			<input type="email" class="form-control" name="amount" Value="100" readonly>
			</div>
			<p><input type="submit" class="btn btn-success btn-lg" value="Click here to Pay"></p>
		</form>
 
    
    </div> <!-- /container -->
		</div>


  </body>
</html>
PHP CODE:


<?php 
$purpose = "Payment";
$amount = $_POST["amount"];
$name = $_POST["name"];
$phone = $_POST["phone"];
$email = $_POST["email"];
include 'src/instamojo.php';
$api = new Instamojo\Instamojo('29b34070bf5867b7d36bf2586c4f4855', '40d161c14f252cc781066e0c685f5f4d','https://www.instamojo.com/api/1.1/');
try {
    $response = $api->paymentRequestCreate(array(
        "purpose" => $purpose,
        "amount" => $amount,
        "buyer_name" => $name,
        "phone" => $phone,
		"email" => $email,
        "send_email" => true,
        "send_sms" => true,
        'allow_repeated_payments' => false,
        "redirect_url" => "https://studentstutorial.com/instamojo/thankyou.php",
        "webhook" => "https://studentstutorial.com/instamojo/webhook.php"
        ));
   $pay_ulr = $response['longurl'];
    header("Location: $pay_ulr");
    exit();
}
catch (Exception $e) {
    print('Error: ' . $e->getMessage());
}     
 ?>

<?php
$data = $_POST;
$mac_provided = $data['mac'];  /* Get the MAC from the POST data*/
unset($data['mac']);  /* Remove the MAC key from the data. */
$ver = explode('.', phpversion());
$major = (int) $ver[0];
$minor = (int) $ver[1];
if($major >= 5 and $minor >= 4){
     ksort($data, SORT_STRING | SORT_FLAG_CASE);
}
else{
     uksort($data, 'strcasecmp');
}
/* You can get the 'salt' from Instamojo's developers page(make sure to log in first): https://www.instamojo.com/developers*/
/* Pass the 'salt' without the <>.*/
$mac_calculated = hash_hmac("sha1", implode("|", $data), "723a3b8f18014441b3a7aead136b6544");

if($mac_provided == $mac_calculated){
   
    if($data['status'] == "Credit"){
       /* Payment was successful, mark it as completed in your database  */
                
                $to = 'YOUR_EMAIL_ADDRESS';
                $subject = 'Website Payment Request ' .$data['buyer_name'].'';
                $message = "<h1>Payment Details</h1>";
                $message .= "<hr>";
                $message .= '<p><b>ID:</b> '.$data['payment_id'].'</p>';
                $message .= '<p><b>Amount:</b> '.$data['amount'].'</p>';
                $message .= "<hr>";
                $message .= '<p><b>Name:</b> '.$data['buyer_name'].'</p>';
                $message .= '<p><b>Email:</b> '.$data['email'].'</p>';
                $message .= '<p><b>Phone:</b> '.$data['phone'].'</p>';
                $message .= "<hr>";
				$headers .= "MIME-Version: 1.0\r\n";
                $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
                /* send email*/
                mail($to, $subject, $message, $headers);
		}
    else{
       /* Payment was unsuccessful, mark it as failed in your database*/
    }
}
else{
    echo "Invalid MAC passed";
}
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">
	<title>Thank You, Mojo</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" >
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" 
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
  </head>
	<body>
    <div class="container">
	<div class="page-header">
        <h1><a href="index.php">Instamojo Payment</a></h1>
        <p class="lead">A test payment integration for instamojo paypemnt gateway. Written in PHP</p>
    </div>
	<h3 style="color:#6da552">Thank You, Payment succus!!</h3>
<?php
include 'src/instamojo.php';
$api = new Instamojo\Instamojo('YOU_PRIVATE_API_KEY', 'YOUR_PRIVATE_AUTH_TOKEN','https://test.instamojo.com/api/1.1/');
$payid = $_GET["payment_request_id"];
try {
    $response = $api->paymentRequestStatus($payid);
	echo "<h4>Payment ID: " . $response['payments'][0]['payment_id'] . "</h4>" ;
    echo "<h4>Payment Name: " . $response['payments'][0]['buyer_name'] . "</h4>" ;
    echo "<h4>Payment Email: " . $response['payments'][0]['email'] . "</h4>" ;
echo "<pre>";
   print_r($response);
echo "</pre>";
}
catch (Exception $e) {
    print('Error: ' . $e->getMessage());
}
?>
</div> <!-- /container -->
</body>
</html>


 Pay U Money Download the files(pay form, success, failure). Save them to your htdocs or www folder. Open the files to edit. 

Now edit the form page, edit the success page and failure page URL as stored in your system(using FTP:// or https://). 

The mandatory fields are imported, to run the PayUMoney integration. Optional parameters can be skipped. 

Run the form page in the browser to fill all mandatory fields. Give anything as product info. Add the links to the file where the success page is located(in htdocs or www). Do the same with the failure page. Now submit the form. Entered into the PayUMoney site. 

Select any payment method. 
Here I'm using the Debit card method.


Now enter the details of any test debit card detail. PLEASE DON'T ENTER ACTUAL DETAILS. Test debit card details can be obtained online.


 Now submit this. Wait for it to connect. Please do not refresh or cancel the transaction. Success page appears, successful transaction. THANK YOU Please SUBSCRIBE for more. The success message can be edited here. 




Top 5 Web Design Trends in 2019

 





 The tops 5 upcoming web design trends in 2019an example of Awesome websites that are using them ready let's check it out video background is one of.
 the best design trend that we are going to see it more and more often in 2019 many marketers used video background to create a modern look.

why give thevisitors first impression and captured their attention at the same time hereare some examples grid layout has been very popular in thepast few years and almost becoming the goto layout for web design until recentlythere was an introduction of asymmetrical layout or broken grid layoutthis trend is still going strong this year and we are expecting to see manybig brands starting to use it on their sites parallax scrolling has been around formany years but recently we have noticed more and more creative websitescombining this technique with many awesome ideas some were good some wereokay nevertheless we are going to see more websites implement anon-traditional scroll in 2019 by the way if you are looking for a quickparallax scrolling tutorial using only CSS check out tutorial video from ourChannel and link below we are going to see more and morewebsites with interactive contents like animation and mouse controllable contentwebsite is not just a static presentation anymore but a medium tograb their attention and let them interact with the content here are somegood examples minimalism tren is still strong and it'sgoing to stay that way in 2019 the less is more and clean design allow thewebsite to load faster and have better screen compatibility why give the userselegant impression here are some samples so that's all for this video and if youare interested in cool CSS design tutorial check our channel for weeklytutorial videos and it's watching and see you next time bye 

What is Web Design?




 Web design is used to work with creative people to combine writing and graphical elements to create a compelling message online for your potential customers. The most important thing to think about there is the message flow. 

Oftentimes, marketers skip over that but you want to really think about telling a message from the top down. What it is, why it's beneficial, how your product or service solves that for them, and then who this is for. So this is a great time for testimonials or brands and of course, combine that page with your call-to-action.

 One of the biggest trends I'm noticing today in web design companies using sections to break out different aspects of their story. They're able to break out the what, why, who, how into sections, and into more of a consistent message flow.


 My favorite is probably the simplification of brand messaging. We're seeing the company focus more on their unique value proposition and then telling a story about how that unique value proposition is accomplished by that particular company. A great example is a company is using what I'm calling the why-how blend. They're saying why you want the product or service and how their service delivers that.