Sunday, 21 January 2024

Privacy Policy

Privacy Policy

We take privacy seriously. This policy outlines how we collect, use, and safeguard your information when you use our app.

Information We Collect

We may collect the following types of information:

  • Personal information such as name and email address, provided voluntarily by you.
  • Non-personal information such as device information, app usage, and technical data for analytics purposes.

How We Use Your Information

We use the collected information for the following purposes:

  • To provide and maintain the app.
  • To improve our services and develop new features.
  • To communicate with you, respond to your inquiries, and send updates.

Children's Privacy

This app is not intended for children under the age of 13. We do not knowingly collect personal information from children. If you are a parent or guardian and believe that your child has provided us with personal information, please contact us so that we can take necessary action.

Privacy Policy Changes

We reserve the right to update our privacy policy at any time. We will notify you of any changes by posting the new privacy policy on this page.

Contact Us

If you have any questions or concerns about our privacy policy, please contact us at mrizwansaeedi3@gmail.com.

Monday, 15 August 2022

WHAT'S NEW IN . C# 10

 

Global Using Staments
File Scoped Namespaces

Const Interpolation String

Tuesday, 2 February 2021

ANDROID STUDIO PRACTICAL : LINK ACTIVITIES WITH INTENT : CS619

 




TO DOWNLOAD COMPLETE CODE
CLICK ON LINK BELOW



Screen 1 layout file

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="center"
    android:gravity="center"
    android:layout_margin="15dp"
    android:orientation="vertical">

    <TextView
        android:layout_width="wrap_content"
        android:text="Login Screen"
        android:textSize="30sp"
        android:layout_margin="20dp"
        android:layout_height="wrap_content"></TextView>

    <EditText
        android:layout_margin="15dp"
        android:layout_width="match_parent"
        android:id="@+id/etUsername"
        android:hint="Enter Your ID"
        android:layout_height="wrap_content"></EditText>

    <EditText
        android:inputType="numberPassword"
        android:layout_margin="15dp"
        android:layout_width="match_parent"
        android:id="@+id/etPassword"
        android:hint="Enter Your Password"
        android:layout_height="wrap_content"></EditText>

    <Button
        android:onClick="btnLoginClick"
        android:layout_width="wrap_content"
        android:text="Login"
        android:id="@+id/btnLogin"
        android:layout_height="wrap_content"></Button>
</LinearLayout>

.............
Screen 1 Java File

package com.example.intents;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

import javax.xml.transform.Source;

public class Screen1 extends AppCompatActivity
{
    EditText etUsername;
    EditText etPassword;
    String myUsername = "bs130200310";
    String myPassword = "111111111";
    String myName = "Rehan Attari";

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_screen1);

        etUsername = findViewById(R.id.etUsername);
        etPassword = findViewById(R.id.etPassword);

    }

    public void btnLoginClick(View view)
    {
        String inputUsername = etUsername.getText().toString();
        String inputPassword = etPassword.getText().toString();

        if (inputUsername.equals(myUsername) && inputPassword.equals(myPassword))
        {
            Toast.makeText(this, "Login Success", Toast.LENGTH_SHORT).show();
            Intent intent = new Intent(Screen1.this, Screen2.class);
            intent.putExtra("key", myName);
            startActivity(intent);

        } else
        {
            Toast.makeText(this, "Invalid Username Or Password. Please Try again", Toast.LENGTH_SHORT).show();
        }
    }
}

..........
Screen 2 layout file

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="center"
    android:gravity="center"
    android:orientation="vertical">

<TextView
    android:id="@+id/tv"
    android:textSize="30sp"
    android:layout_width="wrap_content"
    android:text="Welcome"
    android:layout_height="wrap_content"></TextView>
</LinearLayout>


......

Screen 2 Java File

package com.example.intents;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class Screen2 extends AppCompatActivity
{
    TextView tv;

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_screen2);

        tv = findViewById(R.id.tv);

        Intent intent = getIntent();

        String receivedName = intent.getStringExtra("key");

        tv.setText("Welcome : " + receivedName);

    }
}

Monday, 25 January 2021

ANDROID STUDIO APP 2



xml code

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:layout_gravity="center"

    android:gravity="center"

    android:padding="20dp"

    android:orientation="vertical">


    <TextView

        android:layout_width="wrap_content"

        android:text="Addition Calcluator"

        android:textSize="30dp"

        android:layout_marginBottom="30dp"

        android:layout_height="wrap_content"></TextView>


    <EditText

        android:id="@+id/et1"

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:hint="Enter Value 1"

        android:inputType="numberSigned"></EditText>


    <EditText

        android:id="@+id/et2"

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:hint="Enter Value 2"

        android:inputType="numberSigned"></EditText>


    <Button

        android:onClick="getAnswer"

        android:id="@+id/btnAdd"

        android:layout_marginTop="20dp"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:text="Add"></Button>


    <TextView

        android:layout_marginTop="20dp"

        android:textSize="30dp"

        android:layout_width="wrap_content"

        android:id="@+id/tvAnswer"

        android:layout_height="wrap_content"></TextView>

</LinearLayout>



package com.example.additioncalculatorapp2;


import androidx.appcompat.app.AppCompatActivity;


import android.os.Bundle;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

import android.widget.TextView;

import android.widget.Toast;


public class MainActivity extends AppCompatActivity

{


    @Override

    protected void onCreate(Bundle savedInstanceState)

    {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_main);

    }


    public void getAnswer(View view)

    {

        // linking to layout xml file

        EditText editText1 = findViewById(R.id.et1);

        EditText editText2 = findViewById(R.id.et2);

        TextView tvAns = findViewById(R.id.tvAnswer);


        int input1 = Integer.parseInt ( editText1.getText().toString() );

        int input2 = Integer.parseInt ( editText2.getText().toString() );


        int answer = input1 + input2;

        

        tvAns.setText(String.valueOf(answer));

        

        Toast.makeText(this, String.valueOf(answer), Toast.LENGTH_SHORT).show();


    }

}

Tuesday, 27 October 2020

Monday, 26 October 2020

HOW TO USE MATERIAL DESIGN IN WPF

 STEPS TO ADD MATERIAL DESIGN UI LIBRARY IN WPF APPLICATION

1.

  • Install MaterialDesignThemes nuget: Install-Package MaterialDesignTheme
2.
  • Edit App.xaml to following:
<Application . . .
    xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <materialDesign:BundledTheme BaseTheme="Light" PrimaryColor="DeepPurple" SecondaryColor="Lime" />
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>

3.
<Window . . .
        xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
        TextElement.Foreground="{DynamicResource MaterialDesignBody}"
        TextElement.FontWeight="Regular"
        TextElement.FontSize="13"
        TextOptions.TextFormattingMode="Ideal" 
        TextOptions.TextRenderingMode="Auto"        
        Background="{DynamicResource MaterialDesignPaper}"
        FontFamily="{DynamicResource MaterialDesignFont}">
    <Grid>
        <StackPanel>
            <materialDesign:Card Padding="32" Margin="16">
                <TextBlock Style="{DynamicResource MaterialDesignHeadline6TextBlock}">My First Material Design App</TextBlock>
            </materialDesign:Card>
        </StackPanel>
    </Grid>
</Window>

Friday, 16 October 2020

ASYNC TASK DETAILED VIDEO

VIDEO IS ON YOUTUBE/SAEEDISOFT


JAVA CODE : 


 package islamic.soft.saeedi.com.lessons;


import android.os.AsyncTask;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

import android.widget.TextView;


import androidx.annotation.Nullable;

import androidx.appcompat.app.AppCompatActivity;


public class MainAct extends AppCompatActivity

{

    class ServiceRoadTask extends AsyncTask

    {

        @Override

        protected Object doInBackground(Object[] objects)

        {

            serviceRoadWork();

            return null;

        }


        @Override

        protected void onPostExecute(Object o)

        {

            super.onPostExecute(o);

            textView.setText("Task Completed");

        }

    }


    TextView textView;

    TextView tvResult;

    Button btn;


    @Override

    public void onCreate(@Nullable Bundle savedInstanceState)

    {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.main_act);

        mainRoadWork();

    }


    int counter = 0;


    private void mainRoadWork()

    {

        textView = findViewById(R.id.tv);

        tvResult = findViewById(R.id.tvResult);

        btn = findViewById(R.id.btn);


        btn.setOnClickListener(view ->

        {

            ++counter;

            tvResult.setText(counter + "");

        });


        serviceRoadWork();


        //new ServiceRoadTask().execute();

    }



    private void serviceRoadWork()

    {

        try

        {

            // Downloading Heavy File

            Thread.sleep(10000);

        }

        catch (InterruptedException e)

        {

            e.printStackTrace();

        }

    }

}









XML CODE : 



<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <TextView
        android:id="@+id/tv"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textSize="25sp"></TextView>

    <Button
        android:id="@+id/btn"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:gravity="center"
        android:text="Click Me"></Button>

    <TextView
        android:id="@+id/tvResult"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textSize="25sp"></TextView>
</LinearLayout>

Saturday, 2 May 2020

HOW TO SHOW LOGCAT INFO IN ANDROID STUDIO

package com.saeedisoft.myapplication.Views;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

import com.saeedisoft.myapplication.R;

public class TestingAct extends AppCompatActivity implements View.OnClickListener {

    Button btn;
    private static final String TAG = "Myact";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.testing_act);

        Log.d(TAG, "oncreate was called");

        btn = findViewById(R.id.btnTest);

        btn.setOnClickListener(this);


    }

    @Override
    public void onClick(View button) {
        if (button.getId() == R.id.btnTest) {
            Log.d(TAG, "button was clicked");
        }
    }
}




<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="center"
    android:gravity="center"
    android:orientation="vertical">

    <Button
        android:layout_width="wrap_content"
        android:id="@+id/btnTest"
        android:text="Click Me"
        android:layout_height="wrap_content"></Button>

</LinearLayout>

Sunday, 26 April 2020

ANDROID APP DEVELOPMENT MAKING ( ADDRESS BOOK APP ) PART 1 VIDEO CODE

package com.saeedisoft.myapplication.Models;

public class ContactModel {
    // data memebers
    String name;
    String mob;
    String address;

    // default constructor
    public ContactModel() {
        this.name = "";
        this.mob = "";
        this.address = "";
    }

    // param constructor
    public ContactModel(String name, String mob, String address) {
        this.name = name;
        this.mob = mob;
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMob() {
        return mob;
    }

    public void setMob(String mob) {
        this.mob = mob;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}









package com.saeedisoft.myapplication.Datasource;

import com.saeedisoft.myapplication.Models.ContactModel;

import java.util.ArrayList;
import java.util.List;

public class Data {
    private static List<ContactModel> contactList;

    public static List<ContactModel> getContactList() {
        if (contactList == null) {
            contactList = new ArrayList<>();
        }
        return contactList;
    }

    public static int getListSize(){
        return getContactList().size();
    }

    public static void addToList(ContactModel model){
        getContactList().add(model);
    }
}









package com.saeedisoft.myapplication.Views;

import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import com.saeedisoft.myapplication.Datasource.Data;
import com.saeedisoft.myapplication.Models.ContactModel;
import com.saeedisoft.myapplication.R;

public class AddContact extends AppCompatActivity {

    EditText etName, etMob, etAddress;
    Button btnAddContact;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        initViews();
        attachEvents();
    }

    private void attachEvents() {
        btnAddContact.setOnClickListener(v -> {
            String name = etName.getText().toString().trim();
            String mob = etMob.getText().toString().trim();
            String address = etAddress.getText().toString().trim();

            if (name.length() < 1 || mob.length() < 1) {
                Toast.makeText(this, "Invalid Inputs", Toast.LENGTH_SHORT).show();
                return;
            }

            ContactModel model = new ContactModel(name, mob, address);
            Data.addToList(model);

            etName.setText("");
            etMob.setText("");
            etAddress.setText("");

            Toast.makeText(this, "size of list is now " + Data.getListSize(), Toast.LENGTH_LONG).show();

        });
    }

    private void initViews() {
        etName = findViewById(R.id.etName);
        etMob = findViewById(R.id.etMob);
        etAddress = findViewById(R.id.etAddress);
        btnAddContact = findViewById(R.id.btnAddContact);
    }
}







<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:padding="10dp">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:gravity="center"
        android:text="Add Contact"
        android:textSize="25sp"></TextView>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <TextView
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="Name : "></TextView>

        <EditText
            android:id="@+id/etName"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="3"></EditText>
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <TextView
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="Mobile # : "></TextView>

        <EditText
            android:id="@+id/etMob"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="3"></EditText>
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <TextView
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="Address : "></TextView>

        <EditText
            android:id="@+id/etAddress"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="3"></EditText>
    </LinearLayout>

    <Button
        android:id="@+id/btnAddContact"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:gravity="center"
        android:text="Add"></Button>
</LinearLayout>

Saturday, 25 April 2020

ALERT DIALOGUE IN ANDROID APP

HOW TO SHOW ALERT DIALOGUE IN ANDROID APP 

YOUTUBE VIDEO CODE


 private void showAlert(String title, String message) {
        AlertDialog.Builder alert = new AlertDialog.Builder(MainActivity.this);
        alert.setTitle(title);
        alert.setMessage(message);
        alert.setPositiveButton("YES", (dialog, which) -> {
            Toast.makeText(this, "Record Deleted Successfully", Toast.LENGTH_SHORT).show();
        });
        alert.setNegativeButton("NO", null);
        alert.setNeutralButton("CANCEL",null);
        alert.create();
        alert.setCancelable(false);
        alert.show();
    }

Monday, 20 April 2020

SHOW NOTIFICATION IN ANDROID

FOR OLDER DEVICES  < ANDROID OREO


 public void showNotification(Context context, String title, String body) {
        NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
        NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context)
                .setSmallIcon(R.mipmap.ic_launcher)
                .setContentTitle(title)
                .setContentText(body);
        notificationManager.notify(1, mBuilder.build());
    }


FOR NEW DEVICES >= ANDROID OREO



private void showNotification(Context context, String title, String body) {
        NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            NotificationChannel mChannel = new NotificationChannel("1", "MyChannel",NotificationManager.IMPORTANCE_HIGH);
            notificationManager.createNotificationChannel(mChannel);
        }
        NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context, "1")
                .setSmallIcon(R.mipmap.ic_launcher)
                .setContentTitle(title)
                .setContentText(body);
        notificationManager.notify(1, mBuilder.build());
    }

Saturday, 18 April 2020

ANDROID STUDIO Drop Down List Tutorial

THIS CODE IS USED IN SAEEDISOFT YOUTUBE CHANNEL VIDEO FOR SHOWING DROP DOWN LIST IN ANDROID APP 


XML FILE CODE



<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <Spinner
        android:id="@+id/spinner"
        android:layout_width="350dp"
        android:layout_height="wrap_content"

        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>



JAVA CODE : 


package com.saeedisoft.codetesting;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import android.widget.Toast;

import java.util.ArrayList;
import java.util.List;

public class MainActivity extends AppCompatActivity {
    Spinner spinner;
    Context mContext;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mContext = this;
        spinner = findViewById(R.id.spinner);

        loadDropDownValues();


        spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
            @Override
            public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
                if (position == 0) {
                    Toast.makeText(mContext, "Pakistan", Toast.LENGTH_SHORT).show();
                } else if (position == 1) {
                    Toast.makeText(mContext, "Afghanistan", Toast.LENGTH_SHORT).show();
                } else if (position == 2) {
                    Toast.makeText(mContext, "Iran", Toast.LENGTH_SHORT).show();
                } else if (position == 3) {
                    Toast.makeText(mContext, "India", Toast.LENGTH_SHORT).show();
                }
            }

            @Override
            public void onNothingSelected(AdapterView<?> parent) {

            }
        });
    }

    private void loadDropDownValues() {
        List<String> countries = new ArrayList<>();
        countries.add("PAKISTAN");
        countries.add("AFGHANISTAN");
        countries.add("IRAN");
        countries.add("INDIA");

        ArrayAdapter adapter = new ArrayAdapter(mContext, android.R.layout.simple_spinner_dropdown_item, countries);
        spinner.setAdapter(adapter);
    }
}

Sunday, 12 April 2020

APPLY COLOR IN XML FILE IN ANDROID STUDIO

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/cyan"
    android:orientation="vertical">

    <TextView
        android:layout_width="match_parent"
        android:text="My Activity"
        android:layout_gravity="center"
        android:gravity="center"
        android:textSize="30dp"
        android:textColor="@color/yellow"
        android:background="@color/black"
        android:layout_margin="15dp"
        android:layout_height="wrap_content"></TextView>

    <Button
        android:textColor="@color/white"
        android:layout_width="match_parent"
        android:background="@color/red"
        android:layout_height="wrap_content"
        android:text="Button 1"></Button>

    <Button
        android:textColor="@color/red"
        android:background="@color/CobaltBlue"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Button 2"></Button>
</LinearLayout>

Monday, 30 March 2020

LINEAR LAYOUT 1 


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:padding="20dp">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <TextView
            android:layout_width="100dp"
            android:layout_height="wrap_content"
         
            android:text="Username"></TextView>

        <EditText
            android:layout_width="200dp"
            android:layout_height="wrap_content"></EditText>
    </LinearLayout>

    <LinearLayout

        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <TextView
            android:layout_width="100dp"
            android:layout_height="wrap_content"
            android:text="Password"></TextView>

        <EditText
            android:layout_width="200dp"
            android:layout_height="wrap_content"></EditText>
    </LinearLayout>

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:text="Login">

    </Button>

</LinearLayout>



Tuesday, 17 February 2015

Learn JavaScript Project : Slide Show

Download Project Files Complete


<html>
<head>
<title>Slide Show</title>
<style>
html,body{
margin: 0;
padding: 0;
}
img{
width: 600px;
height: 400px;
}
#picbox{
border: 5px solid red;
margin: 0 auto;
width: 600px;
height: 400px;
}
#header
{
text-align: center;
text-transform: uppercase;
margin-bottom: 60px;
color: blue;
padding-top: 20px;
}
</style>
</head>
<body>
<div id="header">
<h1>Slide Show</h1>
<p>This is final project of lesson 1</p>
</div>
<div id="picbox"><img src="main.jpg" id="pictureBox"></div>

<script>

var imageBox = document.getElementById("pictureBox");

var imageList = ["image1.jpg" , "image2.jpg" , "image3.jpg"];

var i = 0;

function startSlides () {

imageBox.setAttribute("src" , imageList[i]);
i++;

if (i >= 3) {
i = 0;
};
}

setInterval(startSlides , 3000);


// see video tutorial if images are not working properly
</script>
</body>
</html>